docker login
CautionRegistry login
docker login <registry>
Authenticates to a registry; pipe the secret via --password-stdin. Auth failures break push/pull.
Examples
echo $TOKEN | docker login ghcr.io -u user --password-stdinLogin with a piped token
Syntax
docker login [registry] [-u user]
Before you run it
Inline passwords leak into history.
Used when you see
Related commands
- docker pushPush to a registry
- docker pullPull an image
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store