-
Notifications
You must be signed in to change notification settings - Fork 317
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
Doc: Adding documentation to how to access podman from other WSL instances #5342
Comments
Please @fabricepipart1a, feel free to add the different information you need and the use case you have been raising. |
OK let me try to gather all necessary info. I'll contribute to the doc ASAP. Any pointer for documentation contribution? |
Unfortunately it seems more complex than just writing some documentation. Here is what I managed to do until now. I created a wsl distro and a rootful podman machine. I see that the sockets are correctly created as expected:
I started a container:
Now let's put ourselves in the WSL Distro and try things
So it is feasible but it is not as simple as setting I also tried to set the
Did I miss something? |
Ah! This works though:
My issue seems to be that the defaults, while reported correctly by the help, are actually not taken into account:
... until you add the remote option:
|
I had hoped that with rootless, the issues mentioned above would not be there but that is not the case. I have the same behavior.
I save the usage of |
Worked fine for me. Here was I did:
|
[...]
I could reproduce by using the default Ubuntu distribution for WSL. On the Podman machine:
On another Podman machine, the groups resolve identically. On an Ubuntu WSL machine:
On another WSL distribution, the group name might be something else. To authorize the default user to access the rootful Podman, add the user to the group 10.
|
Initial draft: https://hackmd.io/@ffloreth/podman-desktop-5342 |
Thanks for the hint regarding groups. I should have thought about it. |
It might be a bug. Docs in https://docs.podman.io/en/latest/markdown/podman.1.html#remote-r states:
|
You might want to add in your
See https://docs.podman.io/en/latest/markdown/podman.1.html#configuration-files |
I ll try that ! |
I tried the |
I was more successful by creating an alias:
or even with one unique line in ~/.bashrc:
|
For a pure Unfortunately, my tests on one Ubuntu WSL with Podman 3.4.4 have not been very successful so far, with this in ~/.config/containers/containers.conf`:
|
I collected more elements this morning. Now I need to test various scenarios. On Windows, a Podman client running in another WSL instance can access the containers running in your Podman machine. The Podman machine shares sockets for that purpose in a
To access the sockets, your user in the other WSL machine must be a member of their assigned user or group id.
To assign the remote service destination, you can:
To effectively use the remote service, the Podman version on your WSL machine matters: v4 and v3 behave differently. The default Ubuntu WSL has Podman v3.
|
I updated https://hackmd.io/@ffloreth/podman-desktop-5342. @deboer-tim @slemeur can I have your feedback on this? |
Getting in this direction for the docs, so far:
Does everyone agree with this? |
At this point, I believe that organizing the outline in 2 sections: (configuring, testing) brings more clarity:
I opened a second pull request to let you compare the two. @fabricepipart1a @slemeur @deboer-tim Let me know which version you prefer. @fabricepipart1a I have no better suggestion to enable the |
~ ➤ podman images |
Is your feature request related to a problem? Please describe
In some cases the user will have multiple WSL instances.
It is possible to make podman available in the other WSL instances: containers/podman#16660
Describe the solution you'd like
Document how the solution works and what the user has to do.
This would have to be checked:
containers/podman#15190 (comment)
containers/podman#19705
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: