Dockerized version of AWS amazon-ecr-credential-helper.
To use this image, you'll need a helper script somewhere on your path to run
the container. It should be named docker-credential-ecr-login
. An example is
included in this repo.
Then, follow the instructions in the AWS readme. In a nutshell, add one
of the following snippets to ~/.docker/config.json
:
Use helper with specific AWS account registry(s):
{
"credHelpers": {
"<AWS_ACCT_ID>.dkr.ecr.<REGION_ID>.amazonaws.com": "ecr-login"
}
}
Use helper w/ all AWS private registries:
{
"credsStore": "ecr-login"
}