-
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
Getting socket path on Windows does not work #19918
Comments
You can use
Background, this decision was introduced, because while Podman machine could optionally support both types, but the Podman Desktop on Windows can operate only with named pipe due to libuv limitations. So, for machine providers, which support real socket they would also need to support named pipe for Podman Desktop compatibility. |
The documentation in Podman Desktop is wrong. Code part responsible for retrieving path of the pipe https://github.com/containers/podman-desktop/blob/4eca4d670efbdcbaea9443f25833eff08a572bb5/extensions/podman/src/extension.ts#L161 |
Ok, then I get the pipe but not the socket - will that allow me to set the |
@hansmbakker It should work as Docker API on Windows was exposed via named pipe last time I checked it. |
Will try that, thank you! |
Here's a fix for the documentation: podman-desktop/podman-desktop#4157 podman/docs/tutorials/podman-for-windows.md Lines 109 to 111 in cc8c28e
|
A friendly reminder that this issue had no activity for 30 days. |
Is this still unresolved? im pretty much in the same situation, Cant connect to the npipe from vs code on windows |
Seeing same issue on my environment Have tried all the fixes set out above but still seeing the "Failed to connect. Is Docker installed?" message. |
Same issue over here ... trying to replace docker with podman but cannot connect VS Code to Podman.. |
The same problem. with VS Code. |
@StanEgo @dbiegunski @Zak-Ghani @hansmbakker This extension is known to have issues with Podman. Could you test with the extension version downgraded to 1.22.x as workaround? I checked in a test clean system and it worked with 1.22.2 Here is related ticket #17306 And there are numerous tickets in bug tracker of the extension. I'm not a representative of either MS or Podman development team, so, I can't say who should be responsible to fix this. |
Currently there is two options available to use podman containers within VS Code.
|
Issue Description
This documentation page says to run
podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'
to get the socket path.However, that results in:
Just running
podman machine inspect
shows (I trimmed the output to the relevantConnectionInfo
section:Steps to reproduce the issue
Steps to reproduce the issue
winget install RedHat.Podman
winget install RedHat.Podman-Desktop
podman run quay.io/podman/hello
to verify podman workspodman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'
Describe the results you received
Error: template: inspect:1:29: executing "inspect" at <.ConnectionInfo.PodmanSocket.Path>: nil pointer evaluating *machine.VMFile.Path
Describe the results you expected
A socket path
podman info output
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Windows desktop (Windows 11 build 22621.2215)
Additional information
No response
The text was updated successfully, but these errors were encountered: