Open dgcom opened 2 years ago
@dgcom: The label(s) kind/(or, kind/a, kind/can't, kind/easily, kind/identify)
cannot be applied, because the repository doesn't have them.
@baude Don't we have an "update documentation" card coming up?
A friendly reminder that this issue had no activity for 30 days.
@n1hility WDYT?
- Please, provide a way (instructions, etc.) to run recent version of podman purely in WSL2 without installing anything in Windows itself.
If you mean just using the podman package in your distro of choice (no access from Windows programs other than port forwarding provided by WSL): The instructions for those are already covered in our distro specific instructions (since there is no real difference) https://podman.io/docs/installation#ubuntu
- Instructions should probably contain any additional configuration or describe restrictions related to the error below -snip-
2022-07-08T03:12:46.000347263Z: exec container process `/usr/local/bin/ktranslate`: Operation not permitted
I suspect this could be something to do with the dockerfile for this container trying to do setcap:
RUN setcap cap_net_raw=+ep /usr/local/bin/ktranslate
Yes thats right. For this to work you would have to pass the capability --cap-add cap_net_raw+ew
, or run as --privileged
. Although keep in mind that in the case of a rootless podman, where a user namespace is in effect, such system capabilities are filtered by the kernel, so if you are doing this in a rootless setting it will work around the permission failure, but ktranslate may not behave as expected. If thats the case you can fix it by running as rootful (including running the container as a specific non-root user)
I think that being able to install podman purely in WSL2 is very beneficial - should be fast, does not affect host system, does not depend on foreign OS, can be very easily cleaned up by removing WSL distro.
There were instructions before here - https://www.redhat.com/sysadmin/podman-windows-wsl2 - and there are a lot of links to this page on the internet, including podman's own page: https://podman.io/blogs/2020/01/30/podman-wsl.html - which now redirects to completely different article about installing podman in Windows. Old content seems to have been deleted and I don't understand why it is not properly archived for reference.
The older content was out of date, and spent a good portion of the focus on manual setup of a bridge between Windows remote clients and podman running in the distro. All of this is now automated by the Windows installer and CLI clients. If you are interested, the key aspects are still in the github tutorial:
https://github.com/containers/podman/blob/main/docs/tutorials/mac_win_client.md
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature /kind bug (feature or a bug can't easily identify)
There are two related (in my view) requests):
I think that being able to install podman purely in WSL2 is very beneficial - should be fast, does not affect host system, does not depend on foreign OS, can be very easily cleaned up by removing WSL distro.
There were instructions before here - https://www.redhat.com/sysadmin/podman-windows-wsl2 - and there are a lot of links to this page on the internet, including podman's own page: https://podman.io/blogs/2020/01/30/podman-wsl.html - which now redirects to completely different article about installing podman in Windows. Old content seems to have been deleted and I don't understand why it is not properly archived for reference.
Currently, Windows can install Ubuntu 22.04 LTS which includes podman 3.4.4 in its repos and that version is not very old! Buildah seems to work, podman can create containers and I was able to run sample httpd one from podman tutorial.
However, when I try to execute another, more complex container, I am getting the following error:
I suspect this could be something to do with the dockerfile for this container trying to do setcap:
But I could be wrong.
I tried this with regular user and also with sudo.
Steps to reproduce the issue:
Run container with podman 3.4.4 in Ubuntu 22.04 in WSL2 in Windows 10 using the command line in this tutorial: https://github.com/kentik/ktranslate/wiki/SNMP-Quickstart
Observe the error
Describe the results you received:
Describe the results you expected:
Container should be able to start executable. Or, the instructions for running this version of podman directly in WSL2 may explain that certain capabilities are not available.
Additional information you deem important (e.g. issue happens only occasionally):
n/a
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No - only latest version available from distribution repository.
Additional environment details (AWS, VirtualBox, physical, etc.): n/a