Skip to content

[28.x backport] dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host#51395

Merged
austinvazquez merged 1 commit intomoby:28.xfrom
thaJeztah:28.x_backport_rootless_reject
Nov 5, 2025
Merged

[28.x backport] dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host#51395
austinvazquez merged 1 commit intomoby:28.xfrom
thaJeztah:28.x_backport_rootless_reject

Conversation

@thaJeztah
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]>
(cherry picked from commit 76b1d30)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@austinvazquez austinvazquez merged commit 9b93878 into moby:28.x Nov 5, 2025
189 of 190 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_rootless_reject branch November 5, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants