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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store