mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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 <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -130,6 +130,10 @@ if [ -z "$net" ]; then
|
||||
echo "One of slirp4netns (>= v0.4.0), pasta (passt >= 2023_12_04), or vpnkit needs to be installed"
|
||||
fi
|
||||
fi
|
||||
if [ "$net" = host ]; then
|
||||
echo "Unsupported RootlessKit network driver: $net"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$mtu" ]; then
|
||||
if [ "$net" = slirp4netns -o "$net" = pasta ]; then
|
||||
mtu=65520
|
||||
|
||||
Reference in New Issue
Block a user