Merge pull request #51395 from thaJeztah/28.x_backport_rootless_reject

[28.x backport] dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host
This commit is contained in:
Austin Vazquez
2025-11-05 07:41:12 -06:00
committed by GitHub

View File

@@ -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