You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to check what’s the correct arguments to supply to containers.run() to get the same effect as
podman run --net ns:/run/netns/ns1 ...
I have created a new network namespace with ip netns add ns1 and I'd like to create a new container using the Podman API to join this namespace. I successfully joined the name space on the command line with podman run -- net ns:/run/netns/ns1 but am not successful with the Python API client.
I tried network_mode=ns:/run/netns/ns1 but got an error Invalid network ns:/run/netns/ns1 instead. The documentation is not clear on this specific use case.
The text was updated successfully, but these errors were encountered:
chnrxn
changed the title
arguments needed for —net /run/netns/{ns}
arguments needed for --net /run/netns/{ns}
Aug 16, 2023
Hi @chnrxn, thank you for your report. I was unable to reproduce the issue on my end. It appears that commit 65940fc has resolved the problem.
Could you please test it again in your environment and confirm?
I’d like to check what’s the correct arguments to supply to
containers.run()
to get the same effect aspodman run --net ns:/run/netns/ns1 ...
I have created a new network namespace with
ip netns add ns1
and I'd like to create a new container using the Podman API to join this namespace. I successfully joined the name space on the command line withpodman run -- net ns:/run/netns/ns1
but am not successful with the Python API client.I tried
network_mode=ns:/run/netns/ns1
but got an errorInvalid network ns:/run/netns/ns1
instead. The documentation is not clear on this specific use case.The text was updated successfully, but these errors were encountered: