docker-mirror
docker-mirror copied to clipboard
Unable to find tags for Redis Image
Hey Folks,
I'm currently unable to pick up a specified Redis image of 5.0.3, I've tried with 5.0.3-stretch, etc. However it doesn't seem to load the tag, however, when I had switched it to a wildcard on the version, and set it to the past 14 days. It seems to scrape all the relevant tags and upload them just fine to the destination.
Could ya'll take a look?
config.yaml
---
target:
registry: $account_id.dkr.ecr.us-west-2.amazonaws.com
prefix: "hub/"
repositories:
- name: redis
match_tag:
- "5.0.3"
What I did.
$ docker-mirror
INFO[0000] Creating Docker client
INFO[0000] Connected to Docker daemon: docker-desktop @ 20.10.0
INFO[0000] Creating AWS client
INFO[0000] Loading list of ECR repositories
INFO[0000] Done loading ECR repositories
INFO[0000] Repository mirror completed full_repo=redis num_tags=0 repo=redis
INFO[0000] Done
Wildcard Config
---
target:
registry: $account_id.dkr.ecr.us-west-2.amazonaws.com
prefix: "hub/"
repositories:
- name: redis
match_tag:
- "5*"
max_tag_age: 14d
Wildcard uploads successfully.
INFO[0000] Creating Docker client
INFO[0000] Connected to Docker daemon: docker-desktop @ 20.10.0
INFO[0000] Creating AWS client
INFO[0000] Loading list of ECR repositories
INFO[0000] Done loading ECR repositories
INFO[0000] Start mirror tag full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
INFO[0000] Starting docker pull full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
INFO[0001] Completed docker pull in 980.730612ms full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
INFO[0001] Starting docker tag full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
INFO[0001] Completed docker tag in 7.22202ms full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
INFO[0001] Starting docker push full_repo=redis num_tags=18 repo=redis tag=5.0.10-alpine3.12
Other Debugging Items
OS:
macOS Catalina 10.15.6
golang version:
go1.15.5 darwin/amd64
Authentication Method:
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $account_id.dkr.ecr.us-west-2.amazonaws.com
Could be hit by what's fixed in #30
@anathema-one Is this still an issue if you build from master?