Pass a network interface from the host to a container with network=none #22745
Exagone313
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
podman version 5.0.3
andjq
, as rootip
command installedip link add dummy-foobar type dummy
--network=none
ip
), as it's not made for containers created with--network=none
ln -sfT "$(podman inspect foobar | jq -r '.[0].NetworkSettings.SandboxKey')" /run/netns/podman-foobar
dummy-foobar
interface to the network namespace of your container:ip link set dummy-foobar netns podman-foobar
Notes
Beta Was this translation helpful? Give feedback.
All reactions