Skip to content

Simplify --net ns: syntax? #3789

Open
Open
@apostasie

Description

@apostasie

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions