login Usage: docker login [OPTIONS] [SERVER]
Log in to a Docker registry server, if no server is
specified "https://index.docker.io/v1/" is the default.
--help Print usage
-p, --password="" Password
-u, --username="" Username
If you want to login to a self-hosted registry you can specify this by adding the server name. example:
$ docker login localhost:8080
docker login requires user to use sudo or be root, except when: connecting to a remote daemon, such as a dock