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
1
vote
1 answer

How to push docker images to AWS ECR using fabric8 maven plugin while pulling base images from default registry?

When configurating the fabric8 maven plugin to push docker images to AWS ECR, we get an error that the "alpine:latest" image cannot be pulled. Here the relevant part from the maven pom: io.fabric8
AntiTiming
  • 2,094
  • 3
  • 22
  • 33
1
vote
1 answer

Boto3 script to delete all images which are untagged

I want to delete all ecr images which are untagged import boto3 import pprint s3 = boto3.resource('s3') for bucket in s3.buckets.all(): print(bucket.name) pp = pprint.PrettyPrinter(indent=4) client = boto3.client('ecr',…
user17970
  • 495
  • 1
  • 9
  • 25
1
vote
3 answers

deleting existing docker images from EC2 using Jenkins

I have to run some containers from the images present in AWS ECR.As i need to automate this i am using Jenkins. I have 4 ECR repositories as soon as a new version of image comes in this repository my jenkins job will trigger and create a new…
AWS_Lernar
  • 627
  • 2
  • 9
  • 26
1
vote
0 answers

Docker Compose AWS

I have Docker Swarm of 3 manager nodes . Docker compose on the Primary Manager starting 4 microservices from AWS ECR registry( Have done awslogin on all the swarm nodes) My Question: Docker service start necessarily download the docker images from…
Zaks
  • 668
  • 1
  • 8
  • 30
1
vote
2 answers

Unable to fetch ECR docker image

When I am trying to pull docker image from ECR, I am getting the below error: Get https://3242344.dkr.ecr.ap-south-1.amazonaws.imagename/latest: no basic auth credentials Docker service is running fine and I am able to list the repositories.
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
1
vote
2 answers

AWS CLI, List ECR image which I specify with tags

Lets say "foo" is the repository name and I want to call the image which has two tags "boo, boo-0011" This command displays all the images in the repository: aws ecr describe-images --repository-name foo --query "sort_by(imageDetails,&…
Vasanth
  • 11
  • 1
  • 2
1
vote
1 answer

Is it possible to pull images from ECR without using docker login

I have an ECR and EC2 instance running docker. What I want to do is to pull images without doing docker login first. Is it possible at all? If yes what kind of policy should I attach to EC2 instance and/or ECR repo? I did a lot of experiments, but…
Stanislav
  • 73
  • 1
  • 7
1
vote
2 answers

AWS ECR GetAuthorizationToken Issue

I have Jenkins setup for deploying my docker images to a Amazon ECR repository. I have enabled 2FA in my AWS account for the IAM user. I have attached all admin polices to my IAM User. I am following the below command to push my docker image source…
1
vote
2 answers

AWS Windows Powershell ECR Login

I am new to AWS and Docker. I am trying to setup AWS ECR and docker and trying to retrieve ECR Login using windows powershell. I am trying to use the command - Invoke-Expression -Command (aws ecr get-login) which gives me the error My problem is…
user9057272
  • 367
  • 2
  • 5
  • 17
1
vote
0 answers

Amazon Elastic Container Registry Service authentication seems different from Docker token spec

I am trying to get image manifest information from various container image registries. In order to authenticate, I have implemented the token specification (https://docs.docker.com/registry/spec/auth/token/) by Docker and it seems to be working with…
Tanvir
  • 11
  • 4
1
vote
1 answer

Pulling image from ECR via docker-py

I have a script that retrieves a login for ECR, authenticates a DockerClient instance with the login credentials (reauth set to True), and then attempts to pull a nominated container image. The code seems to work perfectly when running on my local…
Graeme
  • 1,643
  • 15
  • 27
1
vote
1 answer

How can I declare and reference an ECR repository in Terraform without jeopardizing its contents?

I am building a Terraform configuration to deploy some containers to AWS ECS. Obviously, I must push the Docker images to ECR. I created a repository in ECR and pushed the images. Now I'm automating. If I declare the aws_ecr_repository like so: data…
Colin Dean
  • 1,429
  • 1
  • 15
  • 26
1
vote
1 answer

is it possible to get the tag history in an ECR (the aws docker registry) repository?

I use tags to mark the currently deployed version, and I want to know if it's possible to query which image was tagged at a certain time with a specific label. While it's possible to keep track of these externally, having this option appears more…
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
0
votes
0 answers

How to upload docker image to AWS using github actions self-hosted runner

Trying to run the workflow below, but when it tries to login into AWS it fails. Doesn't seem to be able to find docker: /bin/docker exec 3a35b843bb4193a520ad9466e6f4ed6308bd01564cb0e7f38ac5976249bb94a4 sh -c "cat /etc/*release | grep…
Vini.g.fer
  • 11,639
  • 16
  • 61
  • 90
0
votes
1 answer

`no basic auth credentials` Github to AWS ECR deployment on git events

I have done setup of Flux for k8s deployment to AWS EKS, for it I have configured Github and k8S with the following: https://www.weave.works/blog/gitops-with-github-actions-eks but getting no basic auth credentials Thanks in advance