github.com/slene/docker@v1.8.0-rc1/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  weight=1
     9  +++
    10  <![end-metadata]-->
    11  
    12  # login
    13  
    14      Usage: docker login [OPTIONS] [SERVER]
    15  
    16      Register or log in to a Docker registry server, if no server is
    17  	specified "https://index.docker.io/v1/" is the default.
    18  
    19        -e, --email=""       Email
    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
    28  
    29