docker login -u myuser -p mypass registry.example.com

Category: Docker

docker login -u myuser -p mypass registry.example.com

Log in to a registry non-interactively (avoid in scripts; use stdin)

Logs in non-interactively by providing credentials in the command. Avoid in scripts — use stdin instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.