Skip to content

dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host#51379

Merged
akerouanton merged 1 commit intomoby:masterfrom
AkihiroSuda:validate-rootlesskit-net
Nov 2, 2025
Merged

dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host#51379
akerouanton merged 1 commit intomoby:masterfrom
AkihiroSuda:validate-rootlesskit-net

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

rootlesskit --net=host does not work with Docker.

Alternative ways to run Rootless Docker without the network overhead:

See:


- What I did

Reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host.

- How I did it

See the code

- How to verify it

$ DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host dockerd-rootless.sh
[...]
+ echo Unsupported RootlessKit network driver: host
Unsupported RootlessKit network driver: host
+ exit 1

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

`rootlesskit --net=host` does not work with Docker.

Alternative ways to run Rootless Docker without the network overhead:
- Use https://github.com/rootless-containers/bypass4netns
- Or, use `docker run --net=host` with a PR 47103 (WIP)

See issue 51363

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda AkihiroSuda added kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. area/rootless Rootless Mode labels Nov 2, 2025
@akerouanton akerouanton merged commit ada6104 into moby:master Nov 2, 2025
217 of 218 checks passed
@thaJeztah thaJeztah added this to the 29.0.0 milestone Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/contrib area/packaging area/rootless Rootless Mode kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. process/cherry-picked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants