Can't configure Podman to perform unqualified image search in Artifactory Docker repository #27588
Unanswered
Joshua-Schroijen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am in the process of setting up a local Docker repository on Artifactory to be used with Podman. My goal is for this Docker repository to be the only one my users have access to. My users will be using Podman on Windows 11 as their container runtime. After logging in using
podman login artifactory.acme.comsuccessfully, I can pull images from this repository using their fully qualified names perfectly. But for my users' convenience, I would like to set up Podman for unqualified search through my own repository instead of Docker Hub and Quay. This is where I run into trouble: I can't seem to figure out how to configure this properly given Artifactory's special structure.Right now, in my Podman machine (
podman-machine-defaultrunning in Windows Subsystem for Linux 2) I put the following into/etc/registries.conf:The configuration of my actual registry is in
/etc/containers/registries.conf.d/999-podman-desktop-registries-from-host.confcontaining:My Artifactory repository is a Docker V2 repository called
common-docker. I verified that it should be accessible because I can browse toartifactory.acme.com/artifactory/common-dockerjust fine and because, as I said earlier, fully qualified image pulls work well.I uploaded the latest
busyboximage into my Artifactory repositorycommon-docker. When I runpodman pull busyboxI get the following error:I suspect the root issue here is that Docker clients like Podman can't handle registries only being available behind a context path (i.e.
artifactory.acme.com/artifactory/common-dockerinstead of justartifactory.acme.com). I therefore suspect the solution might be to set up a reverse proxy that e.g. rewrites something likecontainer-registry.artifactory.acme.comtoartifactory.acme.com/artifactory/common-docker. But the Artifactory host server is outside of my control and setting up reverse proxies in my environment faces many practical constraints. Therefore, I wonder:Any help or input would be very appreciated! Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions