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.

366 questions
57
votes
9 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,090
  • 1
  • 11
  • 20
31
votes
2 answers

ECS/ECR: is common practice to have one registry 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…
25
votes
5 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
  • 25,523
  • 12
  • 41
  • 44
17
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
  • 7,571
  • 4
  • 35
  • 64
16
votes
2 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…
Luca Stucchi
  • 2,226
  • 4
  • 25
  • 49
15
votes
5 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…
14
votes
3 answers

How to make ECR repository public?

How to make an ECR repository public for anybody to pull from. I see the policy document in the permission sections is where I should make changes. But somehow it's not working, and I still need to get authenticated with IAM user.
Vineeth
  • 555
  • 1
  • 7
  • 16
13
votes
2 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
  • 633
  • 7
  • 19
13
votes
3 answers

How to login with AWS CLI using credentials profiles

I want to setup multiple AWS profiles so that I can easily change settings and credentials when jumping between projects. I've read the AWS documentation but it's quite vague about how to select what profile you want to use when logging in. When I'm…
13
votes
2 answers

Jenkins Amazon ECR Plugin login issue "Authorization Token has expired"

I've followed the instructions on the Amazon ECR Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+ECR, which simply instructs a user to install the Amazon ECR configure the Docker Build & Deploy plugin), but Jenkins is unable to…
12
votes
2 answers

How to autoscale Servers in ECS?

I recently started using ECS. I was able to deploy a container image in ECR and create task definition for my container with CPU/Memory limits. My use case is that each container will be a long running app (no webserver, no port mapping needed). The…
code
  • 4,604
  • 13
  • 52
  • 94
10
votes
3 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
  • 117
  • 1
  • 7
9
votes
1 answer

ECR lifecycle policy exception

In our ECR, we are pushing many images everyday with tag 16_XXXX. Some of the pushed images are not stable version of the application. When there is a stable version, we are retagging the image with tag 16.XXXX. We have set up a lifecycle policy to…
8
votes
4 answers

AWS EKS 0/1 nodes are available. 1 insufficient pods

We are trying to deploy a dot net core API service to amazon EKS using ECR. The deployment was successful, but the pods are in pending status. Below are the detailed steps we followed. Steps followed. 1. Created a docker image 2. Pushed the image…
snehgin
  • 131
  • 1
  • 7
8
votes
2 answers

Jenkins Amazon ECR: no basic auth credentials

I'm not able to push ocker images to Amazon ECR with Jenkins Pipeline: I always get no basic auth credentials :-( Here is my setup: Jenkins 2.46.2 Amazon ECR plugin 1.4 I've added AWS credentials aws-jenkins to Jenkins (tested locally and…
Cedric Thiebault
  • 886
  • 1
  • 12
  • 25
1
2 3
24 25