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

Specify environment variable in dockerfile for .net core application

I have a .net core 3.1 application which I is deployed on aws ecs as a docker container. Now I want to specify environment variable in my dockerfile which I am trying to use in my code but everytime I am getting no value. Here is the .net core: …
Ask
  • 3,076
  • 6
  • 30
  • 63
2
votes
2 answers

AWS Batch, AWS ECR : Docker run gives an error x509: certificate signed by unknown authority

To create a AWS Batch job, I am trying to create a Docker image, using the Ubuntu Linux base image. From the Docker container, I want to write some records in AWS DynamoDB and upload some files to S3. These steps are performed by a command line…
Dattatray
  • 1,745
  • 1
  • 21
  • 49
2
votes
1 answer

Codepipeline with remote ECR source

Is it possible to use a remote ECR Repository as a source in CodePipeline? I get the following error: The repository with name '12345.dkr.ecr.eu-central-1.amazonaws.com/ecrrepo' does not exist in the registry with id '67890' (Account IDs have been…
gkris
  • 1,209
  • 3
  • 17
  • 44
2
votes
1 answer

Is there a way to revoke ecr tokens before they expire (12 hours is the default lifetime of a token)?

Usecase: Get ECR Authorization token --> Work with ECR (using this token) --> Revoke Token. Continue this cycle on-demand. Reason To avoid leaving tokens (after use) for the default lifetime of 12 hours. Have looked up AWS doco here and doco for…
kiran01bm
  • 682
  • 7
  • 18
2
votes
3 answers

Bypassing the --password-stdin warning (docker)

Another day, another problem with docker. I have a Windows server 2019, docker version 18.09.03 and I want to get my images to ECR. For certain reasons, I can't have the warning docker : WARNING! Your password will be stored unencrypted My…
shrimpy
  • 653
  • 3
  • 11
  • 27
2
votes
3 answers

AWS Elastic Beanstalk Docker From ECR Error "No Docker image specified in Dockerrun.aws.json"

I'm attempting to deploy a docker image from AWS ECR to Elastic Beanstalk. I've set up all required permissions for Elastic Beanstalk to both S3 and ECR. Communication between these services seems fine, however I get the following errors when…
2
votes
2 answers

Communication between docker containers in aws ecs through rabbitmq

My team is developing an application which consist of 20 microservice, This will be deployed in aws ecs ec2 instance. I am planning to launch 3 aws ec2 instance in the cluster. Each microservice will have its on task definition and service. docker…
sandeep krishna
  • 415
  • 2
  • 9
  • 28
2
votes
1 answer

Where do docker images get pulled from when I log into a different image repository?

I'm trying to set up some infrastructure using AWS ECR to store docker images. I'm just wondering if I have access to the same base images that I do in the docker hub. E.G. FROM node works in my Dockerfile after I log in to ECR. I'm just wondering…
Max Paymar
  • 588
  • 1
  • 7
  • 23
2
votes
0 answers

Comparing local and remote image built in Docker

I am trying to write a script for simple tagging docker images based on the contents of Dockerfile, basically something like "auto-versioning". The current process is: Check the latest version in Docker repository (I am using AWS ECR) Get the…
Jan Richter
  • 1,976
  • 4
  • 29
  • 49
2
votes
2 answers

How do ECR repository policies differ from IAM policies?

How do ECR policies differ from IAM policies? The language around the ECR policies seem to indicate it is similar to the S3 bucket policy. Does it allow you to grant access not using IAM? If I wanted to grant another account access to registry can I…
user2115867
  • 191
  • 1
  • 9
2
votes
1 answer

Need advice how to make Spinnaker work with aws ecr?

I'm setting up Spinnaker in K8s with aws-ecr. My setup and steps are: on AWS side: Added policies ecr-pull, ecr-push, and ecr-generate-token Attached the policy to a role Spinnaker setup: Modified values.yaml with below above…
yadayada
  • 327
  • 1
  • 3
  • 14
1
vote
1 answer

Trying to setup CI/CD on AWS using Github,Docker,ECR, and EC2

So the title kind of says it all. I am trying to come up with a solution to create a CI/CD workflow. The workflow I am trying to create is roughly as follows; Github stores our code and Dockerfile, ECR pulls in our built image every time a push to…
aroe
  • 499
  • 1
  • 6
  • 15
1
vote
1 answer

GitHub CI script for build and push to different ECR based on differenct branch push

I have a project on GitHub, I want to setup CI job to build docker images and push to AWS ECR. My requirements are - One single ci file (I have created.github/workflows/aws.yml) CI job must trigger on the push to master and sandbox branches only If…
Bopsi
  • 2,090
  • 5
  • 36
  • 58
1
vote
1 answer

Boto3 waiter for ECR deletion

Is there a way to wait until the AWS ECR repository force deletion is successful. Similar to waiters in cfn, ecs etc... there are waiters in ecr as well but those are only for image scan and lifecycle policy preview. A scenario where we must force…
Sai
  • 1,790
  • 5
  • 29
  • 51
1
vote
3 answers

How to delete untagged images in ECR

After pushing docker image(with test tag) to ECR, more than one time, older docker images goes untagged in ECR What is the AWS CLI command to delete untagged image in ECR?
overexchange
  • 15,768
  • 30
  • 152
  • 347