Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

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

@jpilch

Description

@jpilch

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions