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
276
votes
49 answers

Can't push image to Amazon ECR - fails with "no basic auth credentials"

I'm trying to push a docker image to an Amazon ECR registry. I'm using docker client Docker version 1.9.1, build a34a1d5. I use aws ecr get-login --region us-east-1 to get the docker login creds. Then I successfully login with those creds as…
Alec Rooney
  • 3,025
  • 2
  • 13
  • 11
129
votes
6 answers

docker login unknown shorthand flag: 'e'

I just updated my docker version and found out that command aws ecr get-login is not working anymore. Got error: unknown shorthand flag: 'e' in -e`. Seems that docker doesn't support -e flag anymore. Is there a way to fix this? Installed…
Chris
  • 3,795
  • 3
  • 17
  • 23
67
votes
8 answers

Create AWS ECR repository if it doesn't exist

How can I create an AWS ECR repository if it doesn't already exist?
Ysak
  • 2,601
  • 6
  • 29
  • 53
61
votes
4 answers

Copy docker image from one AWS ECR repo to another

We want to copy a docker image from non-prod to prod ECR account. Is it possible without pulling, retaging and pushing it again.
letthefireflieslive
  • 11,493
  • 11
  • 37
  • 61
32
votes
1 answer

How to use Docker Image in ECR with AWS EKS

I have created EKS Cluster. I also have docker image in ECR. I am not sure how to use the docker image in pod definition in YAML. Is it required to give credentials in secret? or EKS IAM role should have permission for ECR? Any changes in…
Karthik
  • 744
  • 2
  • 7
  • 23
27
votes
3 answers

Remove tag from image

I have an image (in AWS ECR) with 2 tags and I would like to remove one tag only. I can easily remove from my local environment using: docker rmi : I would like to remove it from ECR. Any help would be appreciated.
Squirrel
  • 1,283
  • 1
  • 13
  • 22
25
votes
5 answers

Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

Just configured the AWS CLI on my computer with my AWS Access and Secret Key. When I try to use the AWS CLI though it gives me this error. Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY I went to ~/.aws/config, and sure enough…
TJB
  • 3,706
  • 9
  • 51
  • 102
23
votes
1 answer

AWS ECS Fargate pull image from a cross account ECR repo

I have 2 AWS accounts: - account A that has an ECR repo. - account b that has an ECS cluster running Fargate. I have created a "cross-account" role in account A with trust relations to account B, also I have attached the…
Anthony Khodr
  • 231
  • 1
  • 2
  • 3
21
votes
2 answers

CodePipeline: ECR source + ECS deploy configuration

Basically, I need to configure CI/CD with bitbucket source code to ECS containers. I want to use CodePipline to deploy new ECR image to ECS. Currently, there is no option in AWS CodePipline to specify bitbucket as the source. However, I've managed…
Sergey Nikitin
  • 845
  • 2
  • 13
  • 25
15
votes
2 answers

Use ECR images in EKS from another account

I've two accounts: Account A and Account B. I would like to run an image from ECR at Account A on EKS on Account B. I'm a bit confused on how to give the EKS the permissions. At first I thought of creating a docker-registry in the EKS with User…
ElinN
  • 153
  • 1
  • 1
  • 5
14
votes
6 answers

Problem in getting result from 'aws ecr get-login'

I am getting following error when given following command. aws ecr get-login --region eu-central-1 Error An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::314xxxx91079:user/git is not…
Amit Bhandari
  • 3,014
  • 6
  • 15
  • 33
13
votes
4 answers

How to auto deploy Docker containers from Amazon ECR to Kubernetes using Jenkins

This is our environment: I have a Kubernetes cluster running on Amazon. Jenkins CI/CD running on Amazon that connects to a private GitLab and builds our services as Docker images. Amazon ECR that stores our Docker images. My questions: How can I…
MasoudSat
  • 130
  • 1
  • 1
  • 6
12
votes
2 answers

CannotPullContainerError: Error response from daemon: pull access denied for ECR Repo Image, repository does not exist or may require 'docker login'

I have pushed a docker image in an ECR Repo in SourceAccount. I have deployed a codepipeline in the SourceAccount. When that codepipeline is run, it deploys ECS stack in TargetAccount. In that stack, ECS tasks are created with containers using the…
MAK
  • 1,915
  • 4
  • 20
  • 44
11
votes
4 answers

I get AWS ECR exit status 255 despite using AWS ubuntu containers

I am trying to build a docker container in AWS code build as a means to deploy a container to ECR, but I get this error. Error while executing command: $(aws ecr get-login --region ap-southeast-1). Reason: exit status 255 This command was run on…
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
10
votes
1 answer

docker pull wouldn't pull latest image from remote

I ran this: docker pull 91xxxxx371.dkr.ecr.us-west-2.amazonaws.com/main_api and nothing new was pulled, but I knew there were new images on AWS/ECR. So I removed the existing images: docker rmi…
user11546917
1
2 3 4 5 6 7 8