Docker Community Forums

Share and learn in the Docker community.

Role of docker daemon in 'docker login to a registry'


The query is that - Does 'docker login -u username -p psw ’ requires docker daemon to be up and running?

In my case, the docker client and docker daemon were on different machines, and docker daemon was not running.

I ran the docker login -u username -p psw < registryaddre> and it executed, and even created entries in config.json

Does this mean that this command does not need docker daemon?

Please help clarify


docker-login (1) - Linux Man Pages

You can specify a URL or a hostname for the SERVER value. If you do not specify a SERVER, the command uses Docker’s public registry located at by default. To get a username/password for Docker’s public registry, create an account on Docker Hub.

You are just using the docker client in this case.