**To retrieve a Docker login command to your default registry** This example prints a command that you can use to log in to your default Amazon ECR registry. Command:: aws ecr get-login Output:: docker login -u AWS -p -e none https://.dkr.ecr..amazonaws.com **To log in to another account's registry** This example prints one or more commands that you can use to log in to Amazon ECR registries associated with other accounts. Command:: aws ecr get-login --registry-ids 012345678910 023456789012 Output:: docker login -u -p -e none docker login -u -p -e none