Skip to content

Instantly share code, notes, and snippets.

@vpack
Created June 29, 2016 13:36
Show Gist options
  • Save vpack/ed43760da0935afc1a38a8f0e397462e to your computer and use it in GitHub Desktop.
Save vpack/ed43760da0935afc1a38a8f0e397462e to your computer and use it in GitHub Desktop.
Docker Image Migration
aws ecr get-login > /tmp/key
sh -x /tmp/key
cat c
ECR=9002725700.dkr.ecr.us-east-1.amazonaws.com
create(){
aws ecr create-repository --repository-name $2
}
#push(){
a(){
REPO=$2
VERSION=$3
docker pull $1/$REPO:$VERSION
docker tag $1/$REPO:$VERSION $ECR/$REPO:$VERSION
docker push $ECR/$REPO:$VERSION
}
a dev-docker-registry.crme.com clear/aon-gateway 17_DEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment