Questions tagged [amazon-ecr]

Amazon ECR stands for "Amazon Elastic Container Registry". It is a part of Amazon Web Services (AWS) and is a managed Docker container registry that stores and manages Docker container images.

Amazon Elastic Container Registry (ECR) is a fully managed container registry that makes it easy for developers to store, manage, and deploy container images. Amazon ECR eliminates the need to operate your own container registry or worry about scaling the underlying infrastructure. Amazon ECR hosts your images in a highly available and scalable architecture, allowing you to reliably deploy containers for your applications. Integration with AWS Identity and Access Management (IAM) provides resource-level control of each repository.

For more details about the product, click here. To get started with Amazon ECR, please see the User Guide.

888 questions
177
votes
31 answers

Aws ecs fargate ResourceInitializationError: unable to pull secrets or registry auth

I am trying to run a private repository on aws-ecs-fargate-1.4.0 platform. For private repository authentication, I have followed the docs and it was working well. Somehow after updating existing service many times it goes fail to run the task and…
165
votes
25 answers

Docker push to AWS ECR hangs immediately and times out

I'm trying to push my first docker image to ECR. I've followed the steps provided by AWS and things seem to be going smoothly until the final push which immediately times out. Specifically, I pass my aws ecr credentials to docker and get a "login…
Jesse McMullen-Crummey
  • 3,175
  • 3
  • 8
  • 17
118
votes
11 answers

AWS ECR GetAuthorizationToken

I've tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user. However when I try to run on my PC the aws ecr get-login I get an error that I don't have…
Y. Eliash
  • 1,808
  • 3
  • 14
  • 23
113
votes
22 answers

aws ecr saying "Cannot perform an interactive login from a non TTY device" after copied cmd from "Amazon Container Services"

I am trying to set up docker image of amazon ECR on ubuntu18.04 machine of AWS,using commands provided by view push commands of Amazon Container Services ,please note i have already set up docker on my ubuntu18.04 and also output of docker -v is as…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
80
votes
3 answers

ECS/ECR: is common practice to have one repository per image (and associated versions)?

So I'm new to ecs/ecr, but it seems like I have to name (with a tag) the image after the repository name in order to push that image to the repository. So my question is: Is it intended that the user (me) would ONLY be pushing a single image and any…
aphexlog
  • 1,503
  • 3
  • 16
  • 43
62
votes
18 answers

Pushing an image to ECR, getting "Retrying in ... seconds"

I recently created a new repository in AWS ECR, and I'm attempting to push an image. I'm copy/pasting the directions provided via the "View push commands" button on the repository page. I'll copy those here for reference: aws ecr get-login-password…
e-e
  • 1,071
  • 1
  • 11
  • 20
50
votes
8 answers

AWS Fargate ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: : signal: killed

Slightly tearing my hair out with this one... I am trying to run a Docker image on Fargate in a VPC in a Public subnet. When I run this as a Task I get: ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: :…
user2800708
  • 1,890
  • 2
  • 18
  • 31
36
votes
1 answer

ECR - What is the registry and what is a repository

Trying to familiarize myself with ECR - i understand that you should be able to push as many repositories as you like to Docker registry. However, ECR has a concept of a 'repository'. So if i have 10 different containers comprising my app, does it…
zaitsman
  • 8,984
  • 6
  • 47
  • 79
36
votes
7 answers

How to delete untagged images from AWS ECR Container Registry

When pushing images to Amazon ECR, if the tag already exists within the repo the old image remains within the registry but goes in an untagged state. So if i docker push image/haha:1.0.0 the second time i do this (provided that something changes)…
Andrea Baccega
  • 27,211
  • 13
  • 45
  • 46
33
votes
6 answers

Error when logging into ECR with Docker login: "Error saving credentials... not implemented"

I'm trying to log in to AWS ECR with the Docker login command. I can get a password with the AWS CLI with the command aws ecr get-login-password but when piping this into the docker login command I get the following error: Error saving credentials:…
chrxr
  • 1,374
  • 1
  • 10
  • 21
27
votes
3 answers

Remove tag from image

I have an image (in AWS ECR) with 2 tags and I would like to remove one tag only. I can easily remove from my local environment using: docker rmi : I would like to remove it from ECR. Any help would be appreciated.
Squirrel
  • 1,283
  • 1
  • 13
  • 22
26
votes
4 answers

AWS ECR Repository - How to copy images from one account and push to another account

I have two accounts - Account A and Account B. In account A, I have a policy with a user from account B can interact with Account A. I have a repository in both accounts. Account B doesn't have a policy set ( Not sure if I need a policy for Account…
Paris
  • 277
  • 1
  • 3
  • 7
25
votes
9 answers

docker login: error storing credentials `The stub received bad data.`

First, I installed AWS-CLI and I already used "AWS configure" to set up my secret key and I also used "Docker login" command to log in and I got success and when I typed Get-ECRLoginCommand. It works and returns the result for me. But when I try to…
25
votes
3 answers

How to define an ECR Lifecycle Policy with CloudFormation

In order to limit the number of images in a repository, I'd like to define a Lifecycle policy. Since all the stack is defined with CloudFormation, I'd like to define this policy too. For example, my policy could be "keep only the most recent 8…
Ing. Luca Stucchi
  • 3,070
  • 6
  • 36
  • 58
23
votes
4 answers

AWS CodeBuild ECR CannotPullContainerError

CodeBuild project fails at the Provisioning phase due to the following error BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE: Unable to pull customer's container image. CannotPullContainerError: Error response from daemon: pull access denied for ,…
Chaitanya Bapat
  • 3,381
  • 6
  • 34
  • 59
1
2 3
59 60