github.com/netbrain/docker@v1.9.0-rc2/docs/reference/commandline/login.md (about) 1 <!--[metadata]> 2 +++ 3 title = "login" 4 description = "The login command description and usage" 5 keywords = ["registry, login, image"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # login 12 13 Usage: docker login [OPTIONS] [SERVER] 14 15 Register or log in to a Docker registry server, if no server is 16 specified "https://index.docker.io/v1/" is the default. 17 18 -e, --email="" Email 19 --help=false Print usage 20 -p, --password="" Password 21 -u, --username="" Username 22 23 If you want to login to a self-hosted registry you can specify this by 24 adding the server name. 25 26 example: 27 $ docker login localhost:8080