-
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
podman network connect not implemented for slirp4netns #19577
Comments
This is expected, slirp4netns is not a network it is what call a network mode. You have to start the container with |
It has been noted that this feature works with rootless Docker, so can we at least document this as broken feature parity? |
There is no broken feature parity you can use network connect/disconnect just fine but as said you must use an actual network not host, slirp4netns, pasta or none when you start the container, the default as rootless is slirp4netns for historic reasons. If you want to change the default you can set |
Because you asked about this yesterday when I was not at the meeting. I suspect the nextcloud aio issue is because they try to connect the nextcloud-aio-mastercontainer container which was started by the user via cli. So for now you must set Also we are considering changing the rootless default to --network bridge with podman v5.0 as well then this should just work. |
Thank you for revisiting this issue. It seems like I created a guide for how to use Podman + Quadlet to run Nextcloud AIO here: nextcloud/all-in-one#3487 |
Issue Description
podman network connect
does not work for rootless Podman usingslirp4netns
Steps to reproduce the issue
Install Podman version 4.6.0 and configure it for rootless mode using
slirp4netns
Describe the results you received
Error: "slirp4netns" is not supported: invalid network mo
Describe the results you expected
It works
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Arch Linux, on-the-metal
Additional information
My use case: I am trying to use rootless Podman + Quadlet to run Nextcloud All-In-One on a home server. This application requires the "network connect" feature (called via Docker Engine API)
https://github.com/nextcloud/all-in-one/blob/e8ab2c702687e2f87895f076af0f5c961851bb9e/php/src/Docker/DockerActionManager.php#L785-L803
This bug has also been reported to affect kind, see kubernetes-sigs/kind#2694
The text was updated successfully, but these errors were encountered: