seatgeek / docker-mirror

Mirror docker images across image repositories
BSD 3-Clause "New" or "Revised" License
145 stars 44 forks source link

Document mirroring to ECR public registry #70

Open guanzo opened 3 years ago

guanzo commented 3 years ago

Wasn't sure if I could upload to a public registry since the docs only mention private registries, but got it working like so

Login:

aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

config.yaml

target:
  registry: public.ecr.aws

  # Default or custom alias
  prefix: "g6hzp2z3/"

repositories:
  - name: alpine # repository needs to be manually created
    match_tag:
    - "3.10"
ArchiFleKs commented 3 years ago

Hi, I'm getting The repository with name 'alpine' does not exist in the registry with id I would expect the repository to be created right ? Or does this work only for private ECR ?