ECR (Amazon Container Registry) now has a dedicated management console.
https://aws.amazon.com/about-aws/whats-new/2018/12/amazon-ecr-console-version-2
Simple guide to creating a repo and pushing a docker image to it:
1. https://eu-west-2.console.aws.amazon.com/ecr/home?region=eu-west-2# and click Create a repository > Get Started
2. Enter a repository name (usually namespace/repo-name
). e.g. snowcrash/wordpress
3. You’ll get a panel showing the URI – e.g. 026972849384.dkr.ecr.eu-west-2.amazonaws.com/snowcrash/wordpress
4. You’ll need to push a docker image to this repo. Assuming you’ve got a docker image you’re happy with locally then get a docker login
command by running $(aws ecr get-login --no-include-email --region eu-west-2)
.
You get this aws ecr get-login
command from your ECR console by clicking View push commands
.
Note: the --no-include-email
is required for more recent versions of docker. E.g. if you get the error message:
1 2 3 |
== -e none https://026972849384.dkr.ecr.us-east-1.amazonaws.com unknown shorthand flag: 'e' in -e See 'docker login --help'. |
If it succeeds, you should get:
1 2 |
WARNING! Using --password via the CLI is insecure. Use --password-stdin. Login Succeeded |
5. tag it with
docker tag <image id> <remote tag>
6. and push with
docker push <remote tag>