Open mwoodpatrick opened 7 months ago
Why is podman using the URL:
"http://d/v5.0.1/libpod/_ping"
When trying to connect?
Running:
curl http://d/v5.0.1/libpod/_ping
Returns:
curl: (6) Could not resolve host: d
and
podman system connection list
gives:
Name URI Identity
Default ReadWrite
podman-machine-default ssh://mwoodpatrick@127.0.0.1:53726/run/user/1000/podman/podman.sock C:\Users\mlwp\.local\share\containers\podman\machine\machine true true
podman-machine-default-root ssh://root@127.0.0.1:53726/run/podman/podman.sock C:\Users\mlwp\.local\share\containers\podman\machine\machine false true
this could be any number of problems. it sounds like it works and then something is going on that causes it to fail. right ?
Agreed, I'm trying to figure best way to debug why the connection is failing. It seems like an issue with the REST API since the commands in the WSL-2 distro created by Podman machine are working
i dont think the REST API as much as the socket
Could easily be a socket issue, Any suggestions on how to debug?
A friendly reminder that this issue had no activity for 30 days.
Same problem here on Windows 11 and Podman 5.1.0 (curl: (6) Could not resolve host: d
), but system connection list
is empty.
Podman machine is running and container can be started from "Podman Desktop" but not from terminal.
podman start {container}
Error: unable to connect to Podman socket: Get "http://d/v5.1.0/libpod/_ping": dial unix /run/podman/podman.sock: connect: A socket operation encounte
I've also hit this. I can replicate the error by performing podman machine init --username foo
. I can then podman machine ssh
, but not podman ps
or anything else. If I init without setting the username, it works as expected.
I am also facing the same issue on Windows 11. Do we have any potential fix for this?
Have you tried to create the podman machine with root privileges? I had the same issue than you, and I realized that I had created the machine without root privileges, but with podman desktop I created the machine with root privilege, and now, I can do things like podman ps, or podman version.
on Windows 11 execute below command and it worked podman machine stop podman machine set --rootful podman machine start
Same error here! It works with podman-compose downgraded to 1.0.6
windows 11 podman 5.2.0 podman-compose installed by "pip3 install podman-compose"
Issue Description
On Windows, I'm sometimes getting into a state where I can't run some commands from the terminal including "podman version" but I can run "podman machine ssh" without issue and then run these commands inside the machine without issue. What's the best way to debug or fix?
Steps to reproduce the issue
Create podman machine run, later run podman commands
Describe the results you received
Run the command
podman version
returns
But the command:
podman machine ssh
works as expected:
Describe the results you expected
podman version runs the current version
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
wsl --version
Additional information
Any pointers on the best way to debug would be appreciated,