Command

Docker Sign in to a Registry Command

The Docker command to sign in to a registry is docker login.

Quick Answer

Command
docker login
DockerCommand

Sign in to a Registry

Type this command
docker login

Logs you in so you can push images to a registry.

Learn More

How to sign in to a registry in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker login, replace any placeholders, and run it.

Docker Sign in to a Registry Command

Run docker login.

Related Commands

Frequently asked questions

What is the Docker command to sign in to a registry?

Run docker login.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify