mirror of
https://github.com/moby/moby.git
synced 2026-07-11 18:13:57 +00:00
Before this commit, setting the `com.docker.network.host_ipv4` bridge option when `enable_ipv6` is true and the experimental `ip6tables` option is enabled would cause Docker to fail to create the network: > failed to create network `test-network`: Error response from daemon: > Failed to Setup IP tables: Unable to enable NAT rule: (iptables > failed: `ip6tables --wait -t nat -I POSTROUTING -s fd01::/64 ! -o > br-test -j SNAT --to-source 192.168.0.2`: ip6tables > v1.8.7 (nf_tables): Bad IP address "192.168.0.2" > > Try `ip6tables -h` or `ip6tables --help` for more information. > (exit status 2)) Fix this error by passing nil -- not the `host_ipv4` address -- when creating the IPv6 rules. Signed-off-by: Richard Hansen <rhansen@rhansen.org>