-
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
"could not find slirp4netns, the network namespace won't be configured: exec: "slirp4netns": executable file not found in $PATH" #1234
Comments
Yeah, it's an optional dependency. |
without slirp4netns there is no connectivity inside the container, so I think it is an ERROR. Should we perhaps not allow creating a container? The alternative is to use the host network namespace |
Hm. I'm fine with leaving it an ERROR level, then. Maybe we should clean the message up a bit? "Cannot start slirp4netns, so networking will not be available in this container"? |
We can print a separate debug-level message with the exact error message so we can still track down problems. |
@giuseppe is slirp4netns already packaged as an RPM (i've only seen source builds). How would podman ensure that it's installed? |
also: can it not fall back on VPNkit? |
@lukasheinrich slirp4netns is packaged for Fedora: https://bodhi.fedoraproject.org/updates/?packages=slirp4netns We could add support for multiple backends in future, if the need arises, but for now I think it is easier to stick with one. Also, slirp4netns is much faster than VPNKit: https://github.com/rootless-containers/slirp4netns#benchmarks |
I will add a Recommends: slirp4netns to podman.spec in this weeks build. |
Fixes: containers#1234 Signed-off-by: Valentin Rothberg <[email protected]>
containers#1234 Signed-off-by: nitrocode <[email protected]>
Not sure if intentional since 'slirp4netns' is in the 'extras' repo in EL7, but it doesn't get automatically installed with podman 1.4.4 in EL 7.7 x86-64 |
This should be in a bugzilla for RHEL, it should definitely be installed. In RHEL8 is should be a recommends, in RHEL7 it needs to be a requires. |
this should solve the issue seen in the pipeline containers/podman#1234
/kind bug
Description
running rootless containers, podman tries to setup rootless networking via
slirp4netns
and throws an error if it's not available. The container proceeds to run as expected, so I think slirp4netns is an optional dependency (for now).Describe the results you received:
Describe the results you expected:
no error
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
fedora 28 vagrant box with SELinux fixes as discussed in #1118
The text was updated successfully, but these errors were encountered: