healthcheck fails on a IPv6 enabled docker daemon
elrido opened this issue · 0 comments
elrido commented
On a docker daemon that has IPv6 enabled (in /etc/docker/daemon.json: "ipv6": true,
), the healthcheck command fails with:
wget: can't connect to remote host: Connection refused
The command currently is: wget -qO/dev/null http://localhost:8080
Investigation shows that the unitd is only listening on the IPv4 socket:
$ netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.11:45497 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 10/unit: router
udp 0 0 127.0.0.11:43799 0.0.0.0:* -
For comparison, the nginx/php-fpm image listens on both IPv4 & 6 sockets.