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

Docker.io proxy cache isn't tagging official images #21454

Open
ijustworkhereshrug opened this issue Jan 22, 2025 · 5 comments
Open

Docker.io proxy cache isn't tagging official images #21454

ijustworkhereshrug opened this issue Jan 22, 2025 · 5 comments
Assignees

Comments

@ijustworkhereshrug
Copy link

ijustworkhereshrug commented Jan 22, 2025

Expected behavior and actual behavior:
When pulling an image from docker.io, all images should be tagged. However, we're seeing that any "official" images from docker.io, that contain "library" in the image path are not getting tagged

Steps to reproduce the problem:

  1. Create a Proxy Cache repository pointed at docker.io
  2. Pull an "official" docker.io image, which contains "library" in the path or implied by not having an organization tag. (eg. ${harbor_url}/docker.io/library/httpd:2.4.41)
  3. Check the docker.io proxy, locate the pulled image and check that the tag does / does not exist

Versions:

  • harbor version: v2.12.2-73072d0d (also failed on previous versions of Harbor)
  • High-availability / multi-az deployed Helm Chart, using AWS RDS, S3, and Elasticache.

Additional context:

  • When pulling an image from docker.io, if library isn't specified (eg. ${harbor_url}/docker.io/httpd:2.4.41) it is still implied and will show up with "library" in the path for the image.

  • When pulling organizational image (non-official docker.io images), such as ${harbor_url}/docker.io/cypress/included:13.13.0, the image will get tagged

@bupd
Copy link
Contributor

bupd commented Jan 23, 2025

Yes this exists.

ON UI
Image

ON API
Image

@ijustworkhereshrug
Copy link
Author

I tested out a few images on the official Harbor Demo site. It seems a bit random if it works or doesn't work:
Harbor Docker.io Project

@ijustworkhereshrug
Copy link
Author

It seems like it's more reliably not tagging images, if they're deleted and repulled

@stonezdj stonezdj self-assigned this Jan 26, 2025
@stonezdj
Copy link
Contributor

The creation of tag is not garanteed, especially for image indexes( with folder icon in the UI)

@ijustworkhereshrug
Copy link
Author

ijustworkhereshrug commented Jan 26, 2025

Interesting. Can you explain why? From my perspective that's a big bug.

For my use-case, this is rather important for replication and airgapping images, since it's not visible when pulling from the UI or API. We need to be able to pull tags reliably from Proxy Repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants