Skip to content

Instantly share code, notes, and snippets.

@li0nel
Last active December 10, 2017 17:47
Show Gist options
  • Save li0nel/6931169238c3ab2b20e5c58f2dc072d5 to your computer and use it in GitHub Desktop.
Save li0nel/6931169238c3ab2b20e5c58f2dc072d5 to your computer and use it in GitHub Desktop.
Login to ECR
# The get-login command outputs the "docker login" command you need to execute with a temporary token
# You can run both directly using eval
# The --no-include-email tells get-login not to return the -e option that does not work for all of Docker versions
eval $(aws ecr get-login --no-include-email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment