Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active November 25, 2021 16:20
Show Gist options
  • Save avoidik/30f147a41f9dcceed6969bea4545e952 to your computer and use it in GitHub Desktop.
Save avoidik/30f147a41f9dcceed6969bea4545e952 to your computer and use it in GitHub Desktop.
Install ECR credentials helper

How to install & configure ECR credentials helper

Download

$ sudo curl -fsSL https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/0.5.0/linux-amd64/docker-credential-ecr-login -o /usr/local/bin/docker-credential-ecr-login
$ sudo chmod +x /usr/local/bin/docker-credential-ecr-login

Configure

echo $(cat $HOME/.docker/config.json | jq '. |= . + {"credsStore": "ecr-login"}') > $HOME/.docker/config.json

References

https://github.com/awslabs/amazon-ecr-credential-helper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment