Skip to content
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

Unable to find tags for Redis Image #35

Open
anathema-one opened this issue Dec 19, 2020 · 2 comments
Open

Unable to find tags for Redis Image #35

anathema-one opened this issue Dec 19, 2020 · 2 comments

Comments

@anathema-one
Copy link

anathema-one commented Dec 19, 2020

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

@inverse
Copy link
Contributor

inverse commented Jan 7, 2021

Could be hit by what's fixed in #30

@inverse
Copy link
Contributor

inverse commented Feb 23, 2021

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

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

2 participants