WSL2 Podman Install across the enterprise #14899
-
Hi Everyone, I have an enterprise environment where I am not able to reach the Fedora repos or mirrors from a normal developer system. I can install Podman on a special system and run the podman machine init and all the updates happen. Then I need to distribute the image to my developers. Currently my process is thus: Copy the export and the appropriate config folders (.local\share\containers, .config\share\containers, \appdata\roaming\containers, .ssh) to the new system At this point on the new system, I can run a podman machine list and see the machine. I can start wsl -d podman-machine-default and do things in there. I can even do a podman machine start. However even though the response is that the machine is started, a podman machine inspect returns JSON with a stopped state for the machine, and a podman image returns this: Cannot connect to Podman. Please verify your connection to the Linux system using doing a podman system connection list returns the same values on both the old and new machine. What am I missing? I cant use the podman machine init on the new machine as it is behind the firewall. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
@n1hility what say you? |
Beta Was this translation helpful? Give feedback.
-
I suspect you are missing the AppData/Roaming/containers/containers.conf which contains the connection configurations. Let me know how that goes. We are looking to add support for air gapped install soon. |
Beta Was this translation helpful? Give feedback.
-
The connection configs are there. They are one of the 4 folders I pulled across.
|
Beta Was this translation helpful? Give feedback.
-
@bhunsicker Ah yes I see that now
|
Beta Was this translation helpful? Give feedback.
-
No errors that I recognize. If I do an inspect I also see the status as stopped. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
ok, so it looks like the WSL import of the image does not re-establish some of the mount points. Got any advice on that one? |
Beta Was this translation helpful? Give feedback.
-
You're welcome! Summarizing the answer for others: Podman for Windows requires the usage of WSL2. You can confirm the version of WSL by using the command
If this does not report 2, you can use the command:
Future versions of podman will detect this problem. |
Beta Was this translation helpful? Give feedback.
You're welcome!
Summarizing the answer for others:
Podman for Windows requires the usage of WSL2.
You can confirm the version of WSL by using the command
wsl -l -v
If this does not report 2, you can use the command:
wsl --set-version podman-machine-default 2
Future versions of podman will detect this problem.