-
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
It is not possible to start a container in a pod with --net=none #9165
Comments
There are two problems here: First, the parsing for podman pod create --network is done differently from podman create. The Second, network I do not know how difficult it would be to support the |
Thank you very much @Luap99 , I didn't realize that
It would be very useful to have this option since if you want to configure a custom networking (for example VETH between bridge and rootless pod) you don't want other interfaces to be present in the pod network namespace and therefore you don't want Thank you. |
@Luap99 Should definitely be possible - I'm amazed that it's not implemented already, actually. I can take that bit on Monday. |
@mheon And if you're interested I'm very happy to test it by connecting bridge/pod by VETH and routing traffic. |
We need an extra field in the pod infra container config. We may want to reevaluate that struct at some point, as storing network modes as bools will rapidly become unsustainable, but that's a discussion for another time. Otherwise, straightforward plumbing. Fixes containers#9165 Signed-off-by: Matthew Heon <[email protected]>
We need an extra field in the pod infra container config. We may want to reevaluate that struct at some point, as storing network modes as bools will rapidly become unsustainable, but that's a discussion for another time. Otherwise, straightforward plumbing. Fixes containers#9165 Signed-off-by: Matthew Heon <[email protected]>
/kind bug
Description
Dear Podman team,
I tested that rootless
podman run --net=none ...
works only when it's outside of a pod. I can't run a container inside of a rootless pod that was created with--net=none
.Please let me know if you need any additional information. Thank you.
Kind regards,
Rudolf Vesely
Steps to reproduce the issue:
--net=none
when creating pod and also when running a container.Describe the results you received:
Error. Please see the output above.
Describe the results you expected:
Should run a container that has only localhost.
Additional information you deem important (e.g. issue happens only occasionally):
Tested on Fedora 33 on a fresh install.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):rpm -q podman
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
I'm testing with up-to-date Fedora 33 with stable release of Podman. I haven't tested it with the RC version.
Additional environment details (AWS, VirtualBox, physical, etc.):
digitalocean.com VPS with Fedora 33
The text was updated successfully, but these errors were encountered: