Skip to content

Instantly share code, notes, and snippets.

@foxutech
Last active March 19, 2018 08:34
Show Gist options
  • Save foxutech/acf80bf8151871511286a442bb82b349 to your computer and use it in GitHub Desktop.
Save foxutech/acf80bf8151871511286a442bb82b349 to your computer and use it in GitHub Desktop.
#!/bin/bash
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx"
aws configure set default.region us-east-1
# Login AWS Docker registry
eval $(aws ecr get-login --no-include-email)
#!/bin/bash
#Usage sh ecr_pull.sh "repo_name" "TAG_NAME"
#Account Information
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx"
#REPO and TAG information
NAME=$1
VERSION=$2
# pull the image
docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$NAME:$VERSION
#!/bin/bash
#Usage sh ecr_pull.sh "repo_name" "TAG_NAME"
#Account Information
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx"
#REPO and TAG information
NAME=$1
VERSION=$2
# pull the image
docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$NAME:$VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment