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
Mixing v1 and v2 registries.conf is not rejected, surprising behavior #1054
Comments
@fdegir: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vrothberg @mtrmac @QiWang19 PTAL |
@fdegir The configuration file is mixing up v1 and v2 syntax; drop all lines before the That will make it work, but the way it fails is surprising to me — I can’t see how we can end up using the v1 search value while using the v2 registries list; AFAICS the code should refuse to work on mixed v1/v2 files completely. |
Thanks a lot for the hint @mtrmac. I can confirm that dropping lines before Regarding mixing v1/v2; podman fails with the correct error message if v1 registries.search contains element(s). but if registries.search is empty, the error message is different which is perhaps what confused us. I include these 3 different cases below for the sake of completion. Please note that these are tested on Centos8 with podman version 1.6.4. v1/v2 mixed with registries.search containining an element.
v1/v2 mixed with an empty registries.search.
v2 only.
I suppose this issue can either be closed or kept open/turned into bug report if you think it is appropriate to do so. Thanks for the help. |
Reopening to see what the parser is doing — and moving to c/image. |
The current version warns, in debug mode only:
Per #1507 , we don’t dare to make this a more visible error. So, that part is not going to get significantly better. But the recognized empty |
/kind question
Description
We are working on bringing local registry for our community to avoid hitting retention and download rate limits that have recently been announced by Docker Hub. We brought up registry using Harbor and set up proxy for Docker Hub. Due to limitations of specifying proxy repo in a good way with docker client, we thought of switching to podman which is a great opportunity for us to replace docker with podman as well.
After configuring proxy on our registry, we then configured
/etc/containers/registries.conf
as shown below.When we attempt pulling an image using fully qualified name from Docker Hub through our proxy registry, things work great.
Podman correctly rewrites reference, the image gets pulled into our proxy registry and from there to the machine we're pulling the image on.
But when we attempt to pull the container image using unqualified name as shown below, it doesn't work.
The error message clear enough but I couldn't figure out how to get this working.
The reason for this is to avoid changing existing Dockerfiles that use unqualified names and instead do stuff with podman on build servers, transparent from users.
Steps to reproduce the issue:
Describe the results you received:
Pulling image with unqualified name doesn't work.
Describe the results you expected:
Pulling image with unqualified name works.
Additional information you deem important (e.g. issue happens only occasionally):
This may be an error on our part but we couldn't figure out how to achieve this by following documentation or if this is at all possible.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
On Ubuntu18.04 with version 2.1.0 and the result is the same.
Additional environment details (AWS, VirtualBox, physical, etc.):
The nodes where we attempted this are provisioned from OpenStack.
The attempts were made on Centos8 and Ubuntu18.04 instances.
The text was updated successfully, but these errors were encountered: