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
23
votes
8 answers

How to install docker on Amazon Linux2

I wanna create docker image for Amazon ECR. but yum can't find it in my Amazon Linux2. [root@*** ~]# yum install -y docker Loaded plugins: amazon-id, rhui-lb, search-disabled-repos No package docker available. Error: Nothing to do Next, I tried to…
isexxx
  • 727
  • 1
  • 6
  • 23
18
votes
2 answers

ECS CLI - You cannot specify an IAM role for services that require a service linked role

I'm trying to deploy a container to ECS (Fargate) via aws cli. I'm able to create the task definition successfully, the problem comes when I want to add a new service to my Fargate cluster. This is the command a execute: aws ecs create-service…
Juan Pablo García
  • 181
  • 1
  • 1
  • 3
17
votes
2 answers

ECS "InternalError: failed to normalize image reference"

We have a docker images being stored in ECR, some have come from a TC build agent and some have come from builds on local developer machines. All images can be pulled an run locally but when trying to start the images built on the build TC build…
Dan Gardner
  • 1,069
  • 2
  • 13
  • 29
17
votes
2 answers

Docker image different size when pushed to ECR than locally

I have a docker image that is 1.46GB on my local machine, but when this is pushed to AWS ECR (either via my local machine or via CicleCI deployment) it is only 537.05MB. I'm pretty new to Docker and to AWS, so any help in figuring out as to why this…
17
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…
17
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…
16
votes
5 answers

AWS ECS: Force redeployment on new latest image in ECR

I know that there are already countless questions in this direction, but unfortunately I was not able to find the right answer yet. If a post already exists, please just share the link here. I have several gitlab CI / CD pipelines. The first…
Stefan
  • 1,253
  • 2
  • 12
  • 36
15
votes
5 answers

Will the cold starts of my AWS Lambda function take longer if I use an ECR image/containers?

Will the cold starts of my AWS Lambda function take longer if I use a image from ECR instead of a jar from S3 as my source code? I'm thinking that yes, because the image is larger due to the additional OS layer (even though... the regular Lambda…
user361676
  • 719
  • 2
  • 7
  • 16
15
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 permission changes. But it's not working, and I still need to get authenticated with the IAM user.
Vineeth
  • 692
  • 3
  • 9
  • 18
14
votes
5 answers

bash script for AWS assume-role

I am trying to assume an AWS role within a CI/CD pipeline, hence I have to write a script to change the role via a script. Below is the script to do that, and I used source