Run podman remote from windows to WSL2 #12649
Replies: 12 comments
-
@baude PTAL You'll need to either make the Podman socket available to the filesystem of the Windows host (not familiar enough with WSL2 to know how/if this is possible) or tell |
Beta Was this translation helpful? Give feedback.
-
I don't think the Windows file system supports Unix sockets, at least it didn't for the QEMU sockets (required fifo instead) |
Beta Was this translation helpful? Give feedback.
-
Well you could setup Podman service to listen on a network port, but be careful. |
Beta Was this translation helpful? Give feedback.
-
Thanks, do you have any guidelines or documents to set up? I look around but cannot find any relevant documents. |
Beta Was this translation helpful? Give feedback.
-
I think we are normally using ssh for this purpose, on the other platforms (e.g. Mac) |
Beta Was this translation helpful? Give feedback.
-
Ping. Do we have a tutorial on that? I don´t know of any. |
Beta Was this translation helpful? Give feedback.
-
@tungphuong man podman-system-service is the best we have. |
Beta Was this translation helpful? Give feedback.
-
A friendly reminder that this issue had no activity for 30 days. |
Beta Was this translation helpful? Give feedback.
-
I am not sure what is required to go forward with this issue or to close it. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Moving to discussion for now. |
Beta Was this translation helpful? Give feedback.
-
I found the article to solve my question. I tried and can use podman client or Tye to access podman server in WSL2 https://www.devcon5.ch/en/blog/2021/10/14/podman-for-windows/ |
Beta Was this translation helpful? Give feedback.
-
I took some time to experiment and I got it working in a slighlty different configuration than what is mentioned in the article mentioned by tungphuong: Server:Create podman WSL instance:We assume that you have WSL 2 already setup on your machine.
Launch server
Windows environment
WSL2 environmentOptionally, you can also install podman remote in the WSL2 instance and connect to the server as in the windows machine. We use the static builds for easy installation and dependency management. As a convenience in WSL2, add an alias to avoid forgetting the --remote: |
Beta Was this translation helpful? Give feedback.
-
Hello, I set up success Podman with WSL2 on Windows 11; can run the container with the Podman CLI in WSL2.
Now I want to access it remotely from the Window host, but I cannot find any document to guide me to set up it and it seems that we cannot start socket/Rest API for the Podman server.
In WSL2, when running
podman --remote info
, got the exceptionError: cannot connect to the Podman socket, please verify that Podman REST API service is running: Get "http://d/v3.3.1/libpod/_ping": dial unix ///mnt/wslg/runtime-dir/podman/podman.sock: connect: no such file or directory
Please share how to use it remotely or does it support this feature for WSL2 yet?
Beta Was this translation helpful? Give feedback.
All reactions