docker login
docker login
docker login --help
docker login --username $DOCKERHUB_USERNAME --password-stdin
Examples
docker login localhost:8080
aws ecr get-login-password --region YOUR_REGIOM | docker login --username YOUR_USERNAME --password-stdin YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com
Related
See also
Advertising: