containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[ECR] [Request]: ability to push images to repositories without creating the sub-repo ( /dev/App1 )

Open thadreez opened this issue 3 years ago • 2 comments

Tell us about your request Ability to push images without the need to create sub repository

Which service(s) is this request for? ECR

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? The ability to push images to repositories without the need to create the sub-repo 000.dkr.ecr.eu-central-1.amazonaws.com/dev as ( /dev/App1 )

the setup

  • Create a repository on ECR /dev
  • docker tag local/image:v1 000.dkr.ecr.eu-central-1.amazonaws.com/dev/app1:v1
  • docker push 000.dkr.ecr.eu-central-1.amazonaws.com/dev/app1:v1

ERROR name unknown: The repository with name 'dev/app1' does not exist in the registry with id 'registry host'

Are you currently working around this issue?

Yes, by creating every repo, which i snot ideal

aws ecr create-repository --repository-name dev/app1 aws ecr create-repository --repository-name dev/app2 aws ecr create-repository --repository-name dev/app3

Additional context Docker registry work as intended, it will create /app1 by default It is not ideal to create 1000 repos for my 1000 apps

Attachments

thadreez avatar Mar 05 '21 13:03 thadreez

Probably already covered by #853

deki avatar Jul 15 '21 19:07 deki

I agree that creating multiple repositories is unpractical and causes a management overhead, unless specifically desired due to auditing/security reasons.

As a workaround the image could be tagged with dev:app1_v1.0.0.

dudicoco avatar Jul 12 '22 08:07 dudicoco

plus one on fixing this. Gitlab does this too. Azure and GCP do not.

bdgscotland avatar May 05 '23 14:05 bdgscotland