-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
pull --all-tags : confusing documentation #23625
Comments
For reference this is the used registries.conf: https://github.com/containers/podman/blob/main/test/registries-cached.conf containers-registries.conf(5) says:
Given --all-tags must lookup all tags first then pull image the tag list still reads from quay.io but I don't know why it is that way. It certainly breaks the usage of this in restricted environments. cc @mtrmac Also trying locally with debug logs shows this very clearly
|
Yes, mirrors are not used for listing tags. It’s … consistent? The mirror code is designed to work well with partial mirrors, where important images are mirrored and pulling the others falls back to the primary. But in such an environment, listing tags from the mirror returns unexpected results. Really, this is more of an implementation accident (and delivering a minimal viable mirroring implementation) than a well-considered careful decision. We could add the feature, and an option to For the test, would it be practical to run |
Tentative yes, but there seems to be a gap in the passing of $ bin/podman pull --tls-verify=false --all-tags 127.0.0.1:60333/libpod/testdigest_v2s2
Error: pinging container registry 127.0.0.1:60333: Get "https://127.0.0.1:60333/v2/": http: server gave HTTP response to HTTPS client
$ ^-a
...works fine... (Side note: for reasons I can't explain, my brain was convinced that |
The challenge here is that we must keep the tests working with and without the local registry setup so we add some complexity into the test to allow that. That said given quay.io flakes are bad enough it seems certainly worth it to do. |
We already have a mechanism for conditionalizing e2e tests such that they work in and out of CI: Lines 25 to 32 in 734c4b9
I hate it, really hate the hardcoding and special-casing, hate the fact that some code paths go untested. I choose to accept this grossness for now as a pragmatic tradeoff. I hope some day we can reevaluate. |
Huh. From a quick read of the code (without testing) this seems to be wired correctly, I don’t immediately see where the information is lost.
There are two APIs: The two are basically distinct code paths, testing one does not test the other. (And it’s up to the registry being contacted which one is used; we prefer |
A friendly reminder that this issue had no activity for 30 days. |
@edsantiago what do you want to do with this one? |
I would be fine with just documenting this. |
If |
podman pull --all-tags
CI test is flaking today due to the quay outage.Question: is there any way to force
--all-tags
to respect the aliases inregistries.conf
?Issue: docs need improvement because "docker.io" is misleading and wrong and confusing:
The text was updated successfully, but these errors were encountered: