Docker Cheat Sheet/Login to a registry

Authenticate to a registry such as Docker Hub or a private registry.

Section: Basics

Login to a registry

bash
bash
docker login
Explanation

Stores credentials via configured credential helper or config store.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Basics
Logout from a registry
Remove stored registry credentials.
OpenIn sheetbashsame section
Search Docker Hub
Search Docker Hub for images.
OpenIn sheetbashsame section
Show Docker version
Display client and server version details.
OpenIn sheetbashsame section
Show Docker system info
Display engine-wide diagnostic and configuration information.
OpenIn sheetbashsame section
Show Docker help
Show top-level help and subcommands.
OpenIn sheetbashsame section
List contexts
List available Docker contexts.
OpenIn sheetbashsame section