Docker – How to you disable IPv6 in Docker on CentOS7

centos7dockeripv6

I have tried the normal methods (e.g. https://wiki.centos.org/FAQ/CentOS6#head-d47139912868bcb9d754441ecb6a8a10d41781df). And even though sysctl net.ipv6.conf.default.disable_ipv6 returns 1 on my host system, it always returns 0 inside my container.

Thanks!

Best Answer

There issue in docker: #20569 In this issue there mato's comment that docker option --sysctl net.ipv6.conf.all.disable_ipv6=1 partialy fix this issue.