Skip to content

Run container inside rootless netns #27399

@M1cha

Description

@M1cha

Feature request description

It would be great if you could run a container inside the network namespace that you can also enter via podman unshare --rootless-netns. This would make it easier to run things like Zephyrs native_tap inside a container. This driver connects to a tap interface which was manually added to the docker bridge.

Suggest potential solution

Something like podman run --network rootless-netns ....

Have you considered any alternatives?

podman run --network=ns:/run/user/1000/containers/networks/rootless-netns/rootless-netns ... already works, but requires figuring out the path to the netns yourself.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.networkNetworking related issue or featuretriagedIssue has been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions