-
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
Docker compose fails to pull podman images #18843
Comments
@vrothberg PTAL |
Thanks for reaching out, @SureshGota! Do I understand you correctly that the |
@vrothberg yes its the local image store. I was successfully able to run he same yaml file with dockerD and docker image store, But with podman & docker compose it fails to pull images. when I prefix with localhost/imageName it fails with the error If I remove the prefix localhost and try, this time it fails while connecting to docker.io but its an authentication related failure. |
Thanks, @SureshGota ! I will investigate and report back soon. |
I tried with Podman v4.5.1 and am unable to reproduce. Ultimately, the error from Podman indicates that the image is not present in the local storage (or cannot be found). Can you share the output of |
@vrothberg Thanks for your help. I would like to add some info that might aid your investigation. I ran a sample docker-compose to run ngnix and redis image that was stored on docker.io. This ran successfully, however when I did |
@vrothberg Did you install docker-compose manually? I did this step additionally. I am running both as same user but for running docker-compose I need to sudo. |
In this case, Why do you need to run |
Good catch. Yes, when you do The reason I run docker-compose with sudo is because of this error |
If you want to point Is it working for you? |
@vrothberg This works, thank you so much. I have a question an addon question, I have my database running on my windows host. I have added the below config in my compose file but looks like the containers are not able to access the host service. Any advice on this?
|
I am not sure if that works today. @Luap99, do you? We may need to create a separate issue for it. |
There is #14390 for that. I am closing this one as the pull thing is resolved. |
Issue Description
I am working on a windows and have installed Podman. Inside the default WSL created by Podman I have installed docker compose.
Here's my compose file,
Steps to reproduce the issue
I have built the images using
podman build
command and I can see them when I list them aspodman images
. I am also able to run the images usingpodman run
command.However when I run
docker-compose up
it fails while trying to pull the imagewith the error
initializing source docker://localhost/configurations:latest: pinging container registry localhost: Get "https://localhost/v2/": dial tcp 127.0.0.1:443: connect: connection refused
if I remove the localhost prefix from my image name it tries to connect to docker.io and fails there as well.
To triage I have installed
podman compose
which works fine but I want to use docker compose for my work and it for some reason fails to work as expected.How do I make it work with local machine as the image repository?
Describe the results you received
Fails to pull the images from local machine.
Describe the results you expected
Run all the docker compose images successfully.
podman info output
NA
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: