We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a81d441 + 5c9f2e0 commit 17552fcCopy full SHA for 17552fc
contrib/dockerd-rootless.sh
@@ -228,9 +228,10 @@ else
228
# When running with --firewall-backend=nftables, IP forwarding needs to be enabled
229
# because the daemon won't enable it. IP forwarding is harmless in the rootless
230
# netns, there's only a single external interface and only Docker uses the netns.
231
- # So, always enable IPv4 and IPv6 forwarding.
+ # So, always enable IPv4 and IPv6 forwarding. But ignore failure to enable IPv6
232
+ # forwarding, for hosts with IPv6 disabled.
233
sysctl -w net.ipv4.ip_forward=1
- sysctl -w net.ipv6.conf.all.forwarding=1
234
+ sysctl -w net.ipv6.conf.all.forwarding=1 || true
235
236
exec "$dockerd" "$@"
237
fi
0 commit comments