Questions tagged [aws-ecr]

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.

111 questions
10
votes
1 answer

Docker push to Amazon ECR slows or freezes

Recently, my docker push commands to a remote ECR registry have become extremely, extremely slow, sometimes maybe frozen. It hangs long (or forever) in Preparing, or Waiting, or half-way through Pushing, or at 100% Pushing. I've tried this in…
salezica
  • 74,081
  • 25
  • 105
  • 166
10
votes
7 answers

Set one lifecycle policy for all repositories in ECR

I curious if there is a way to set one common lifecycle policy, that will be applied to all repositories in ECR? Currently, as I understand there is no way to do it. One approach that I'm thinking about is to use JSON definition of lifecycle…
Alex
  • 115
  • 1
  • 5
9
votes
4 answers

Jenkins pipeline Docker agent from AWS ECR

I need to execute Jenkins pipeline in Docker as an agent, Docker image is located in AWS ECR, How can I auth over AWS ECR to pull image for agent?
kagarlickij
  • 7,327
  • 10
  • 36
  • 71
9
votes
3 answers

kubectl pod fails to pull down an AWS ECR image

step 1 sudo $(aws ecr get-login --no-include-email --region xx-xxxx-x) step 2 curl -LSs https://github.com/fermayo/ecr-k8s-secret/raw/master/gen-secret.sh | bash - step 3 kubectl describe secret aws-ecr-credentials Name: …
Barak
  • 411
  • 4
  • 6
8
votes
2 answers

Docker login error "Not enough memory resources are available"

I'm using Windows 10 and Docker Desktop Engine 19.03.5. I'm trying to create an AWS ECR repository and push an image. aws ecr get-login --no-include-email # successful docker login -u AWS -p eyJwYXlsb2F... # failed Error: Error saving…
user2047824
  • 633
  • 1
  • 5
  • 16
8
votes
2 answers

Unable to access ECR repository from separate account via `docker pull`

I'm attempting to allow one AWS account (called "second" below) to pull an image in an ECR repository of another AWS account (called "first" below). I'm following these…
Libby
  • 1,357
  • 12
  • 17
8
votes
1 answer

'No basic auth credentials' when using amazon-ecr-credential-helper

I'm trying to setup the amazon-ecr-credential-helper but always get no basic auth credentials when I try to docker pull. When I use aws ecr get-login and docker login ... then I have no problems. I followed the instructions in their README file…
Peter Lustig
  • 1,585
  • 1
  • 18
  • 34
7
votes
4 answers

Push to ECR from Jenkins pipeline

I have Jenkins server on-preminse. I have Jenkins file which create Docker image now i want to push that image to AWS ECR.Do i have to create a special IAM user and provide its access and secret access keys ? Or what will be the best way to do…
AWS_Lernar
  • 627
  • 2
  • 9
  • 26
6
votes
2 answers

How to not rebuild a DockerImageAsset at every deploy using aws-cdk in TypeScript?

My app is a Python API that I package as a Docker image and use with ECS Fargate (Spot Instances). The code below works. My issue is that it rebuilds the entire image every time I deploy this – which is very time-consuming (downloads all…
Lazhar
  • 1,401
  • 16
  • 37
6
votes
5 answers

How do I set docker-credential-ecr-login in my PATH before anything else in GitLab CI

I'm using AWS ECR to host a private Dockerfile image, and I would like to use it in GitLab CI. Accordingly to the documentation I need to set docker-credential-ecr-login to fetch the private image, but I have no idea how to do that before anything…
Amanda Ferrari
  • 1,168
  • 5
  • 17
  • 30
6
votes
2 answers

CannotPullContainerError: context canceled error when starting ECS task

I am starting an ECS task with Fargate and the container ends up in a STOPPED state after being in PENDING for a few minutes. The Status gives the following error message: CannotPullContainerError: context canceled I am using PrivateLink to allow…
tschumann
  • 2,776
  • 3
  • 26
  • 42
6
votes
2 answers

docker login to ECR via python docker SDK

python3 along with https://docker-py.readthedocs.io/en/stable/ I am just curious, that when I login to ecr (via aws ecr get-login) my docker deamon on my PC remembers the token and even if restart shell i can login to ECR until token expires. I can…
Łukasz
  • 1,980
  • 6
  • 32
  • 52
5
votes
1 answer

Is there anyway I can modify expiration time of get-login-password token?

I am able to get token to access aws ecr using get-login-password. Default authorization token is valid for 12 hours. Is there anyway I can modify default value?
Mohamed Thasin ah
  • 10,754
  • 11
  • 52
  • 111
5
votes
3 answers

Auth into ECR in a Jenkinsfile so I can pull an image to run the build in?

The situation here is that we have an app that's currently being built on a Jenkins slave with a certain version of node installed on it. We want to standardize the build environment, and so to do that want to build inside a docker…
Answorth
  • 147
  • 1
  • 2
  • 10
5
votes
0 answers

Unable to pull from ECR within Docker Build

I am running into credential issues when I am trying to pull an image from ECR as part of a Docker Build, using AWS CodeBuild. For context, our setup is this: Codebuild is calling an internal docker tool that we wrote. This tool is then doing the…
Jon Heckman
  • 420
  • 2
  • 7
  • 18