May 2018
Intermediate to advanced
554 pages
13h 51m
English
In order to push a container image to Amazon ECR, you need to create a repository beforehand. Unlike Docker hub or private registry, Amazon ECR doesn't create a repository automatically when it is the first time to push the image. Therefore, if you want to push three container images, you have to create three repositories in advance:
It is simple to type the aws ecr create-repository command to specify the repository name:
$ aws ecr create-repository --repository-name my-nginx{ "repository": { "registryId": "************", "repositoryName": "my-nginx", "repositoryArn": "arn:aws:ecr:us-east-1:************:repository/my-nginx", "createdAt": 1516608220.0, "repositoryUri": "************.dkr.ecr.us-east-1.amazonaws.com/my-nginx ...