Docker Community Forums

Share and learn in the Docker community.

Network host mode and IPv6

I am running Docker CE on an up to date CentOS7 version with kernel 3.10.0-1062.1.1.el7.x86_64.

I have one Nginx container running in host mode (for correct IP detection in logs) and everything works fine over IPv4, but since the VPS has a fully supported IPv6 config I figured I’d try to make it work over IPv6 as well. But when I take a look at “netstat -tulpn” the HTTP/HTTPS ports of the nginx container are only running on, so not in IPv6.

I’ve tried enabling the IPv6 through the daemon.json but that didn’t fix it.

How can I make this set up work on IPv6?