-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman unable to resolve fully-qualified image names from docker.io when using docker-compose #13234
Comments
Noting that I'm thinking this issue might be invalid with 4.0 around the corner which will automatically resolve images from docker.io (as far as I understand based on this comment: #11717 (comment)) I realized later that |
this is not about dns name resolution. this is about "shortnames"; where Podman is trying to parse the image name input and figure out where it is coming from. This can be attributed to how your distribution choose to ship Podman. What happens if you try docker.io/library/postgres:latest ? |
I understand that 🙂
I could be wrong about this, but I believe Arch's repositories are pulling directly from upstream. Or at least the configuration files are, according to the first sentence in this section on the wiki: https://wiki.archlinux.org/title/Podman#No_image_found
As I said in the issue description:
|
This should be resolved in v4.0 as v4.0 up hardcodes the |
Yeah, I am curious if there's a fix for non-compat version of Podman, specifically one's that strictly enforce OCI expectations outside of a docker-compat world (not sure how different they are at this point though). If there's anything I can do to help debug this issue I'm happy to assist, just let me know. |
Great! That confirms why it worked fine with |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Install rootless podman following the instructions at https://wiki.archlinux.org/title/Podman. Be sure to install
podman-docker
so thatdocker
is aliased topodman
.Verify
$DOCKER_HOST
is correctly exported in shell environment (you can do this by doing something silly like setting it to an invalid value and ensuring that podman fails when running rootless podman commands).Do not add
docker.io
to the list of registries for podman to resolve toUse this simple
docker-compose.yml
with a fully-qualified docker.io image name and confirm that it fails with the error below:Note: feel free to change the
docker.io/postgres:latest
to anything else you think might work likeindex.docker.io/...
ordocker.io/library/...
. Regardless of these, none of them work.Describe the results you received:
Describe the results you expected:
Podman should successfully resolve the fully-qualified image name from docker.io in docker-compose.
Additional information you deem important (e.g. issue happens only occasionally):
This is something to do with podman's behavior under docker-compose specifically because running
podman pull docker.io/postgres:latest
works perfectly.Note also that this only happens if you don't add
docker.io
to the list of registries. I know that adding docker.io to that list will resolve this for me locally but I'm specifically trying to use fully-qualified image names without needing to modify the podman registry configuration files.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? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: