docker-mirror icon indicating copy to clipboard operation
docker-mirror copied to clipboard

Unable to find tags for Redis Image

Open anathema-one opened this issue 4 years ago • 2 comments

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

anathema-one avatar Dec 19 '20 00:12 anathema-one

Could be hit by what's fixed in #30

inverse avatar Jan 07 '21 16:01 inverse

@anathema-one Is this still an issue if you build from master?

inverse avatar Feb 23 '21 14:02 inverse