Questions tagged [amazon-ecr]

Amazon Web Services Elastic Container Registry is a software-as-a-service hosted private Docker registry that can be used to store private Docker container images in AWS data centers.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

AWS EKS worker nodes to Kubernetes master connectivity

AWS EKS creates the k8s master nodes in a managed VPC and the worker nodes are created in customer's VPC. I don't see any route being added in my VPC by EKS for the k8s workers to k8s masters ...
0
votes
0answers
65 views

Configuring “auth” and “credsStore” for different Docker registry

I'm trying to configure Docker for two different registries. (One ECR and docker.io) I need to configure ECR one with ecr-login and docker.io with simple auth but I'm failing to configure these at the ...
0
votes
0answers
49 views

MissingAuthenticationTokenException when pulling from ECR to EKS in private VPC

I am setting up an EKS cluster in a private VPC. In order to pull images from ECR I created an Endpoint for the ECR service in my VPC. For testing purposes I pushed a Nginx image to my ECR which has ...
1
vote
2answers
719 views

Amazon ECS Task fails with STOPPED (CannotPullContainerError: Error response from daem)

I have set up an AWS VPC and am trying to deploy a functional container in ECS on a Fargate launch type but the task always fails with: STOPPED (CannotPullContainerError: Error response from daem) ...
1
vote
0answers
24 views

AWS Elastic Container Registry login blocked

We are trying to log in to AWS Elastic Container Registry (ECR) to pull down docker containers from our private registry. The login is failing with this error: Error response from Daemon: Get https:/...
0
votes
0answers
68 views

ECR - Replacing docker image having same tag name

Below script: #!/bin/bash build_and_store_in_ECR() { local BUILD_VERSION=26Jul2019-1 local version=“1.0” docker build -f somedockerfile -t team/subteam:$version . $(aws ecr get-...
0
votes
2answers
132 views

Command Execution Error while executing ecr login command

I am getting error in PRE_BUILD section of Code Pipeline while deploying ECS. While executing commmand for ecr login, i am getting exit status with error code 255. please see below image. Command : - ...
1
vote
0answers
151 views

How to deploy SSL certificates on Amazon Elastic Container Service?

I have a proxy server (nginx) which has the following responsibilities: proxies to different backends depending on resource requested enforces rate limiting and IP blacklisting handles rewrites and ...
0
votes
0answers
138 views

Setting environment variable in kubernetes before pulling an image

Is there a way to set the environment variables in kubernetes before it pulls the container image? For some context, I'm looking for alternatives to what I've asked in ECR IAM policy document for EKS ...
2
votes
0answers
293 views

ECR IAM policy document for EKS node access

What is the correct way to manage EKS node access to ECR via the IAM policy documents when I want to limit who can start jobs using different images? In a simplified example, I have users A and B and ...
3
votes
0answers
300 views

Use an ECR image as an agent in Jenkins

What I'd like to do is use an ECR image as an agent in Jenkins when using declarative pipeline Current top of pipeline script looks like so: pipeline { agent { docker { image ...
0
votes
1answer
595 views

Why does a custom CodeBuild image require aws configure, but not a managed one?

I have an AWS CodePipeline with the build step using CodeBuild. I was previously using a managed image for this build job and I was able to use the follow command without issue: aws ecr get-login --...
2
votes
0answers
197 views

How to get Docker to retry image pull?

Our Nomad agents sometimes fails jobs because they cannot pull images from ECR. /var/log/docker will contain messages like: Not continuing with pull after error: error pulling image configuration:...
1
vote
1answer
406 views

Give one user read-only access to ECR repo

How can I give a_user read-only access (i.e. no permission to Push) and b_user is not banned? What I have done so far: Added my AWS access + secret key with aws configure Made an ECR repo and did ...
0
votes
2answers
1k views

Docker login to AWS ECR fails with “dial tcp xxxx:443: i/o timeout”

I'm stepping through a "Scaling Docker for AWS" course which specifies using "aws ecr get-login" to get a "docker login" command line. I'm running docker version 1.12.6. When I run the output ...
1
vote
1answer
4k views

How to add amazon-ecr-credential-helper to path

I'm trying to set up amazon-ecr-credential-helper so that I can have an ansible script automatically push / pull to my aws ecr docker repository, but the instructions for installing it seem very vague....
1
vote
0answers
349 views

Best strategy for deploying Docker to Elastic Beanstalk

I'm not sure if this is the best place to put this question. But for a few days I'm struggling to find a good deploying process to Elastic Beanstalk and I want to know the opinion of people with more ...
0
votes
1answer
577 views

Automatically login on Amazon ECR with Docker Swarm

We have Docker images hosted on Amazon ECR and the goal is to run them on EC2 instances using Docker Swarm. The services are configured in global mode so that they are automatically replicated on new ...
1
vote
1answer
858 views

“unknown shorthand flag: 'e' in -e” from 'aws ecr get-login'

I am trying to push a docker image to the aws ecr When i try to login to ect, aws ecr get-login It expands to something like this docker login -u AWS -p eyJwYXlsbXXXXXXVZIn0= -e none https:...
4
votes
3answers
4k views

How to connect to AWS ECR using python docker-py

When running from the command line, to pull from a specific registry I can run these commands: dockerCommand=$("aws ecr get-login --profile profileName --region us-west-2") $dockerCommand (which ...
1
vote
1answer
4k views

What is the permission for a IAM user to create a ECR repository?

My IAM user is getting this error User: arn:aws:iam::123456789:user/admin is not authorized to perform: ecr:CreateRepository on resource: * when I try to create a repository. I have already grant ...
12
votes
1answer
6k views

Can I use AWS ECR image directly in my Dockerfile?

In a typical dockerfile, there is usually this line From ubuntu:16.04 which enables pulling an image from docker repository. Now I have built my own image repository: The repositiory URI is: ...
0
votes
1answer
205 views

AWS ECR - Getting an image's age

Is there a way to find the age of a Docker image pushed to AWS ECR? When I ask for the image manifest with aws ecr batch-get-image --repository some/repo --image-ids "imageDigest=sha256:abcdef..." ...
3
votes
0answers
825 views

How to estimate storage and traffic used for docker images in AWS ECR?

I'm trying to esimate monthly cost of using AWS ECR. It will consist of: outgoing traffic cost (downloading images) and storage cost (storing images in ECR). Let's assume, that: We are building some ...
5
votes
1answer
2k views

AWS ECR - Push Successful, Image Does Not Appear in Repo

We're using AWS ECR to host our docker images. We've noticed in a few rare instances that the docker push command can complete successfully, but the resulting image does not appear in the ECR ...
0
votes
1answer
672 views

Publish docker images to AWS ECR from Jenkins

Following this discussion- Integrate Amazon Elastic Container Registry with Jenkins, After publishing my image to ECR from Jenkins using a shell script, it works- but another image with empty tag ...
0
votes
1answer
149 views

AWS ECR allow pull for all?

I've uploaded a few docker containers to AWS ECR. I'm trying to Docker Pull without any authentication, which doesn't seem to work. I've read that there's a way to authenticate with a token for ...
10
votes
4answers
5k views

Integrate Amazon Elastic Container Registry with Jenkins

I'm trying to integrate Amazon's new Elastic Container Registry (ECR) with my Jenkins build service. I'm using the Cloudbees Docker Build & Publish plugin to build container images and publish ...