AWS ECR

1 min read aws, ecr

Written in 2018. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/aws-ecr-playground.

Session

mkdir aws-ecr-playground
code aws-ecr-playground
touch Dockerfile
touch README.md
docker build -t hello-world .
touch .gitignore
docker build -t hello-world .
docker-machine ip
docker run -p 80:80 hello-world
docker-machine ip
aws ecr create-repository --repository-name hello-world
docker tag hello-world 123456789012.dkr.ecr.us-east-1.amazonaws.com/hello-world
$(aws ecr get-login --no-include-email)
docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/hello-world

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.