Skip to content

Commit 76b1d30

Browse files
committed
dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host
`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]>
1 parent 5ac561f commit 76b1d30

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contrib/dockerd-rootless.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ if [ -z "$net" ]; then
130130
echo "One of slirp4netns (>= v0.4.0), pasta (passt >= 2023_12_04), or vpnkit needs to be installed"
131131
fi
132132
fi
133+
if [ "$net" = host ]; then
134+
echo "Unsupported RootlessKit network driver: $net"
135+
exit 1
136+
fi
133137
if [ -z "$mtu" ]; then
134138
if [ "$net" = slirp4netns -o "$net" = pasta ]; then
135139
mtu=65520

0 commit comments

Comments
 (0)