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
6
votes
2 answers

Docker AWS ECR error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n"

Had an issue with not being able to push or pull from an AWS ECR registry with the following cryptic error: error parsing HTTP 404 response body: invalid character 'p' after top-level value: "404 page not found\n" Several hours of googling…
EthanK
  • 600
  • 5
  • 17
5
votes
1 answer

docker buildx failing with Problem executing scripts APT::Update::Post-Invoke

I have a docker image building through a circle.ci pipeline, it's pulling an ECR image from AWS and hosted on EB/EC2 and its failing to build continuously with this error: #5 0.329 Get:1 http://deb.debian.org/debian bookworm InRelease [147 kB] #5…
5
votes
2 answers

How to pull docker image from ECR in Githubactions

I'm trying to pull docker image from ECR and deploy it on ec2 instance. However it's throwing an error like docker pull $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ======END====== err: invalid reference format 2022/11/03 15:31:54 Process exited with…
5
votes
1 answer

What happens to old image in ECR with latest tag when I push a new image with same tag?

So, I was new to ECR/ECR I already pushed an image to my repo with latest tag. But what happens when I push another image with latest tag to the same repo? Will the old one tag changes because I want them to be there. Also, I can't change the tag…
5
votes
3 answers

Get most recent/newest image from ECR using terraform data source

I have an ECR repository named workflow and in this repository, there is 5 image pushed using GitHub action. Now I have a terraform workflow that will just use the image from ECR and using this ECR image builds the ECS container definition. so now I…
Rohan jangid
  • 125
  • 3
  • 13
5
votes
1 answer

After jibBuildTar, what command to use to load to AWS ECR?

Is there an AWS CLI command to simply load my image tar to AWS? (I do not have docker on my computer at all nor do I want to increase the image size of our CD pipeline as I prefer to keep it very very small since it adds to the time to start in…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
5
votes
1 answer

AWS CDK reference existing image on ECR

New to AWS CDK and I'm trying to create a load balanced fargate service with the construct ApplicationLoadBalancedFargateService. I have an existing image on ECR that I would like to reference and use. I've found the…
5
votes
4 answers

AWS Lambda from cross account ECR : Lambda does not have permission to access the ECR image

I'm trying to create a lambda function in account B from an ECR Image from another account A but i'm encountering a Lambda does not have permission to access the ECR image error. I created the following ECR policy following this: { "Version":…
GuillaumeK
  • 61
  • 1
  • 3
5
votes
1 answer

AWS Fargate "CannotPullContainerError failed to extract layer"

I'm attempting to start an ECS Task using an image in our ECR yet it doesn't start, I get the below error: CannotPullContainerError: containerd: pull command failed: time="2021-08-10T13:12:24Z" level=info msg="apply failure, attempting cleanup"…
5
votes
1 answer

AWS ECR Lifecycle Policy is not executed but works in test

I set images Lifecycle policies to delete untagged images and images with a specific prefix { "rules": [ { "rulePriority": 1, "description": "Delete untagged images", "selection": { "tagStatus": "untagged", …
passwd
  • 2,883
  • 3
  • 12
  • 22
5
votes
1 answer

When are AWS ECR lifecycle policies applied?

I don't see any changes to the images after I add lifecycle policies like this one: { "rulePriority": 1, "description": "Keep last 5 images", "selection": { "tagStatus": "any", "countType": "imageCountMoreThan", "countNumber": 5 …
johann1301s
  • 343
  • 4
  • 19
5
votes
1 answer

My ECS Task is running, but does not work when I try to visit it via ALB or public IP

ECS Settings Network Config Tasks and Containers Deployment Config Health Config Ingress Security Group Egress Security Group Few more things: The Dockerfile ports to 443 The container has ports 443 mapped to 443 and 8080 to 8080 The ALB is…
Ventti
  • 87
  • 1
  • 6
5
votes
4 answers

AWS ECR user is not authorized to perform: ecr-public:GetAuthorizationToken on resource: *

I am facing the following issue when attempting to retrieve an authentication token and authenticate your Docker client to your registry: user is not authorized to perform: ecr-public:GetAuthorizationToken on resource: * I was able to push an image…
dataviews
  • 2,466
  • 7
  • 31
  • 64
5
votes
1 answer

AWS Fargate Cluster unable to access Internet with NAT and Internet Gateways in place

I'm trying to deploy containers to a private network Fargate cluster on AWS. I do have an Internet Gateway on my single VPC: And I do have a NAT Gateway for that particular subnet in the very same VPC where my cluster/services live: Routing seems…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
5
votes
1 answer

Amazon aws cli query starts_with

Trying to filter out only repos that start with name but always got empty collection back. I can see the values there when running without the starts_with option aws ecr describe-repositories --query "repositories[?starts_with(repositoryName,…
RVid
  • 1,207
  • 1
  • 14
  • 31