Difference between revisions of "Aws ecr get-login-password"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* <code>[[aws ecr]] get-login-password</code> ([https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/get-login-password.html ref]) | * <code>[[aws ecr]] get-login-password</code> ([https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/get-login-password.html ref]) | ||
+ | == Example == | ||
aws ecr get-login-password | [[docker login]] --username AWS --password-stdin [[YOUR_ACCOUNT_ID]].[[dkr.ecr]].[[eu-central-1]].amazonaws.com | aws ecr get-login-password | [[docker login]] --username AWS --password-stdin [[YOUR_ACCOUNT_ID]].[[dkr.ecr]].[[eu-central-1]].amazonaws.com | ||
Login Succeeded | Login Succeeded | ||
− | |||
aws ecr get-login-password --region eu-central-1 | [[docker login]] --username AWS --password-stdin YOUR_ACCOUNT_ID.[[dkr.ecr]].eu-central-1.amazonaws.com | aws ecr get-login-password --region eu-central-1 | [[docker login]] --username AWS --password-stdin YOUR_ACCOUNT_ID.[[dkr.ecr]].eu-central-1.amazonaws.com |
Revision as of 09:58, 23 February 2024
Contents
Example
aws ecr get-login-password | docker login --username AWS --password-stdin YOUR_ACCOUNT_ID.dkr.ecr.eu-central-1.amazonaws.com Login Succeeded
aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin YOUR_ACCOUNT_ID.dkr.ecr.eu-central-1.amazonaws.com Login Succeeded
Errors
Related
aws sts get-caller-identity
docker login
aws ecr get-login
docker push
- aws configure get region, AWS_REGION
See also
Advertising: