Skip to content
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

Simplify --net ns: syntax? #3789

Open
apostasie opened this issue Dec 23, 2024 · 1 comment
Open

Simplify --net ns: syntax? #3789

apostasie opened this issue Dec 23, 2024 · 1 comment

Comments

@apostasie
Copy link
Contributor

What is the problem you're trying to solve

Currently, we require absolute path to the ns.

eg:

sudo nerdctl run -d --net ns:/run/netns/lepton-test busybox sleep Inf

and (of course?)

sudo nerdctl run -d --net ns:lepton-test busybox sleep Inf

... will fail.

Is there a particular reason not to allow network namespaces names instead of full path?
Put otherwise: are there cases where passing along a full path that is not under /run/netns would be required?

Describe the solution you'd like

na

Additional context

No response

@AkihiroSuda
Copy link
Member

--net ns: should be compatible with Podman; so supporting absolute paths SGTM if Podman supports them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants