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

Docker image size changed on aws ecr

i just uploaded docker image to aws ecr. my actual docker image locally is 927 MB while on ECR it is showing 321 MB is there anything i am missing to read during documentation ? i have uploaded image is proper with tag name but size change is there
Harsh Manvar
  • 27,020
  • 6
  • 48
  • 102
4
votes
2 answers

AWS CodePipeline: How to make ECR Image build by CodeBuild as an artifact for the remaining stages?

My CodePipeline currently has a Github Source and a CodeBuild that builds an image and pushes it to ECR: +---------------+ +-----------+ +-----+ | GitHub Source +----->+ CodeBuild +---->+ ECR | +---------------+ +-----------+ …
4
votes
1 answer

"no basic auth credentials" when trying to pull an image from a private ECR

I have the following line somewhere in the middle of my Dockerfile to retrieve an image from my private ECR. FROM **********.dkr.ecr.ap-southeast-1.amazonaws.com/prod/*************:ff03401 This is the error that I get in AWS Codebuild when trying…
user6269864
4
votes
1 answer

Elastic Beanstalk does not update image from ECR automatically

I have "Update": "true" in Dockerrun.aws.json which should automatically update the image and container in the EC2 ionstance when i update the image in ECR. But when i ssh into the instance after pushing a new image , i still see the container…
4
votes
1 answer

Does Kubernetes cache docker-registry secrets?

We are pulling images from a private ECR (AWS) running Kubernetes that ships with Docker for Mac (minikube). We have a secret called aws-cred. I created it using: kubectl create secret docker-registry aws-creds…
reikje
  • 2,850
  • 2
  • 24
  • 44
4
votes
2 answers

Can't upload large Docker image to AWS ECR

I'm working on creating a mongodb docker image that contains the backup production data of my org's primary database. However, when I try to push this image up I am greeted with this error. [root@ip-1-2-3-4 inf-tool-docker-mongo]# docker push…
Dan
  • 2,323
  • 1
  • 21
  • 30
3
votes
1 answer

Github actions: aws ecr login fails

I am trying to setup CI for my github repository. After each push in sandbox branch I want build a docker image my project and push to AWS ECR. Here is my .github/workflows/aws.yml file - name: be-harvester CI on: pull_request: branches: …
Bopsi
  • 2,090
  • 5
  • 36
  • 58
3
votes
1 answer

Deploy latest image from ECR to EC2

I have a existing Jenkins pipeline job which build docker image and push it to AWS ECR repository. We are not using ECS in our shop. I want to create a jenkins pipeline job which will take this latest ECR image form repository and put in an Existing…
3
votes
2 answers

AWS trigger a Pipeline on ECR push action?

An AWS CodePipeline can be triggered on a commit action to AWS CodeCommit. I do not see an option/way to trigger an AWS CodePipeline on a push action to AWS ECR. Is there a such option?
3
votes
3 answers

Azure pipeline service container - image from AWS ECR

I've been trying to pull a service container from AWS ECR in azure pipeline but I'm not sure how to perform the "aws ecr get-login" from the pipeline.yml. Here is what I have in my azure pipeline.yml but of course I'm getting "no basic auth…
bet
  • 962
  • 1
  • 9
  • 22
3
votes
1 answer

AWS ECR how to restrict retagging except for latest tag

I want restrict retagging except for latest tag in AWS ECR. It is very hard if some developers pushs image with same tag for debugging. So I would like to allow only "latest" tag to be retagged. But not for different docker image versions to same…
PShetty
  • 545
  • 6
  • 14
3
votes
1 answer

CodePipeline: How to integrate ECR with Elastic Beanstalk?

I'm trying to combine ECR and Elastic Beanstalk with the following CodePipeline setup: Source : CodeCommit Build : buildspec.yml which Builds a docker image and pushes it to ECR repository Deploy: Elastic Beanstalk Note that Step 2 doesn't contain…
3
votes
1 answer

Halyard - How to use --password-command option?

About Halyard, I want to use --password-command option to refresh Amazon ECR Authorization Token. If you have experience of using this option, please teach me. Thank you!
3
votes
3 answers

AWS ECR login with JavaScript SDK --no-include-email flag

I'm trying to run this AWS CLI command: aws ecr get-login --no-include-email --region But using the JavaScript SDK with new AWS.ECR(..).getAuthorizationToken method but I'm getting this error: Error response from daemon: login attempt…
Shlomi
  • 3,622
  • 5
  • 23
  • 34
2
votes
1 answer

Assigning IP Address to Docker Container on EC2

I am currently trying to get my docker container to be publicly addressable so I can route it through aws route 53 (DNS). I have my contained on an ubuntu ec2 and am looking for what I should do next. Here is the screenshot of my containers running…
aroe
  • 147
  • 2
  • 13