This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECR_REG=12345678910.dkr.ecr.us-west-2.amazonaws.com | |
ECR_REPO=my_app | |
ECR_TAG=tag_name | |
RUN_NAME=${ECR_REPO}_new | |
# login to ECR | |
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $ECR_REG | |
# Start container | |
docker run --detach --name $RUN_NAME $ECR_REG/$ECR_REPO:$ECR_TAG tail -f /dev/null |
OlderNewer