Skip to content

Instantly share code, notes, and snippets.

@latenssi
Last active December 4, 2018 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save latenssi/0bed3ce843571d6d999982d28c16e914 to your computer and use it in GitHub Desktop.
Save latenssi/0bed3ce843571d6d999982d28c16e914 to your computer and use it in GitHub Desktop.
AWS ECR helper
  1. Clone the git repository https://github.com/awslabs/amazon-ecr-credential-helper.git

  2. cd to the cloned folder "amazon-ecr-credential-helper"

  3. Run the command on terminal "make docker" (it will create the binary "./bin/local/docker-credential-ecr-login")

  4. Copy this binary to /usr/bin with the command " sudo cp ./bin/local/docker-credential-ecr-login /usr/bin/docker-credential-ecr-login

  5. Create or modify the docker config.json file available at /.docker/config.json with the below content

    { "credsStore": "ecr-login" }

$(aws ecr get-login --no-include-email --region eu-central-1)

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