Skip to content

Using --registry-mirror with Amazon ECR Public Gallery #3443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jpilch opened this issue Apr 7, 2025 · 0 comments
Open

Using --registry-mirror with Amazon ECR Public Gallery #3443

jpilch opened this issue Apr 7, 2025 · 0 comments

Comments

@jpilch
Copy link

jpilch commented Apr 7, 2025

Hello,

I'm trying avoid Docker Hub rate limits by pulling base images from Amazon's Public ECR Gallery (https://gallery.ecr.aws). I know that Kaniko supports the --registry-mirror flag for using a Docker registry mirror, and I’m wondering if this flag can be used with public.ecr.aws.

So far I've tried setting the --registry-mirror flag like this

/kaniko/executor \
  --registry-mirror public.ecr.aws

and I would expect for e.g. alpine image to be pulled from the following url: public.ecr.aws/docker/library/alpine:latest
however I get the following error instead (seems like /v2 and /manifests paths are added to the url)

WARN[0001] Failed to retrieve image alpine: from remapped registry public.ecr.aws: unable to complete operation after 0 attempts, last error: GET https://public.ecr.aws/v2/library/alpine/manifests/latest: NAME_UNKNOWN: The repository with name 'alpine' does not exist in the registry with id 'library'. Will try with the next registry, or fallback to the original registry.

Is this a supported use case for --registry-mirror? If so, I would appreciate any advice on how to fix this issue.

Thanks a lot in advance!

@jpilch jpilch changed the title Using --registry-mirror be used with Amazon ECR Public Gallery Using --registry-mirror with Amazon ECR Public Gallery Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant