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
7
votes
1 answer

Github Actions: How to run containerized tests in a docker image built by build-push-action without doubling execution time

I am using build-push-action in Github Actions (with buildx) to build Docker image and push it to AWS ECR registry. Before I push the image (unfortunately, it has several GB), I want to use the image to run containerized Python…
Marek
  • 815
  • 8
  • 19
7
votes
0 answers

Combining AWS ECR lifecycle rules using "and"

I would like to set up an AWS ECR lifecycle policy such that an image is expired iff it is older than 90 days and there are at least 10 more recent images. In other words, I want to keep all images that are newer than 90 days, and I want to keep at…
John Velonis
  • 1,449
  • 1
  • 15
  • 13
7
votes
1 answer

aws cdk push image to ecr

I am trying to do something that seems fairly logical and straight forward. I am using the AWS CDK to provision an ecr repo: repository = ecr.Repository( self, id="Repo", …
Ben Muller
  • 221
  • 1
  • 4
  • 10
7
votes
1 answer

AWS ECS Network ACL requirements

I currently have a set up in AWS with something like the following: Image source from task networking in aws fargate. I am using AWS ECR to store my docker image and in my task definition, as container image, I am using the provided URI of the…
atish.s
  • 1,534
  • 11
  • 19
7
votes
1 answer

Retagging image on AWS ECR creates new image

I have a private Docker repository on AWS ECR. I'm trying to tag an existing image with a new tag using the instructions here https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-retag.html For example, say I have an image with tag "1.5.0",…
Omair Vaiyani
  • 398
  • 3
  • 12
7
votes
1 answer

New command for AWS CLI v2 to replace `aws ecr get-login` of AWS CLI v1

Encouraged by DockerCon 2020, I'm tackling again getting a flask app running on AWS EC2, but this time I don't want to touch the AWS dashboard. I'd like to stay entirely on the command line (osx terminal). This fine tutorial describes how to build…
Calaf
  • 10,113
  • 15
  • 57
  • 120
7
votes
2 answers

Did not find the image definition file imagedefinitions.json

"Invalid action configuration Did not find the image definition file imagedefinitions.json in the input artifacts ZIP file. Verify the file is stored in your pipeline's Amazon S3 artifact bucket" getting this error, i did not user codebuild in AWS…
Akshay
  • 91
  • 1
  • 1
  • 7
7
votes
2 answers

How do I pull the pre-built docker images for SageMaker?

I'm trying to pull the pre-built docker images for SageMaker. I am able to successfully docker login to ECR (my AWS credentials). When I try to pull the image I get the standard no basic auth credentials. Maybe I'm misunderstanding... I assumed…
Ryan Fisher
  • 1,485
  • 1
  • 19
  • 32
7
votes
3 answers

Security group egress rule to only permit ECR requests

When using ECR to store container images for use with ECS, the EC2 instance (or Fargate service) must have a security group that permits access (over the public internet) to the account-specific repository URI. Many organisations have strict IP…
Adam
  • 959
  • 1
  • 10
  • 22
6
votes
0 answers

ECR Pulling failing for Fargate Tasks in Private Subnet with Public IP

Firstly thank you to whomever can answer this. It's my first post here so I'll try to be as clear as possible. I have an ECS cluster with 2 fargate tasks configured. The ECS is setup in a VPC assigned to private subnets (NAT attached) and these…
6
votes
2 answers

Publish Docker images using Spring Boot Plugin without credentials

I've got a Gradle project with Spring Boot plugin and am trying to publish the image built by the plugin: gradle bootBuildImage --publishImage The problem is to publish "either token or username/password must be provided" and we can't do that since…
Rad
  • 4,292
  • 8
  • 33
  • 71
6
votes
2 answers

AWS ECR Login with podman

Good morning/afternoon/night! Can you help me, please? I'm working with RHEL 8.2 and this version doesn't support Docker. I installled Podman and everything was ok until I use the following command: $(aws ecr get-login --no-include-email --region…
MauTOz
  • 67
  • 1
  • 6
6
votes
2 answers

Jib: how to use amazon-ecr-credential-helper without installing it?

When using jib-gradle-plugin to build and push to AWS ECR, it requires me to install aws ecr credential helper otherwise the build complains "The system does not have docker-credential-ecr-login CLI". I am wondering if there is a way to push to AWS…
Xinchao
  • 2,929
  • 1
  • 24
  • 39
6
votes
1 answer

how to list images from ECR Registry

I wanted to list images from ECR registry, but getting some error. Can someone provide the solution? aws ecr list-images --repository-name Got error below An error occurred (RepositoryNotFoundException) when calling the…
kaka
  • 143
  • 1
  • 4
  • 13
6
votes
4 answers

How can I build a Docker image with Codebuild?

I want to build a docker image from a Dockerfile, and publish this image to an AWS ECR (Docker registry). In order to succeed, I need to have access to docker build and docker push from within the Codebuild container, which is problematic…
Eric
  • 477
  • 3
  • 17