HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/lib/python3.6/site-packages/awscli/examples/ecr/get-login.rst
**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 <password> -e none https://<aws_account_id>.dkr.ecr.<region>.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 <username> -p <token-1> -e none <endpoint-1>
  docker login -u <username> -p <token-2> -e none <endpoint-2>