Merge pull request #51379 from AkihiroSuda/validate-rootlesskit-net

dockerd-rootless.sh: reject DOCKERD_ROOTLESS_ROOTLESSKIT_NET=host
This commit is contained in:
Albin Kerouanton
2025-11-02 16:57:45 +01:00
committed by GitHub

View File

@@ -131,6 +131,10 @@ if [ -z "$net" ]; then
exit 1
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