docker login -u myuser registry.example.com

Category: Docker

docker login -u myuser registry.example.com

Log in to a registry with a username prompt

Authenticates to registry.example.com as myuser, prompting for the password or token interactively. Omitting -p avoids credentials in shell history. Use --password-stdin with a pipe for scripts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.