Closed elrido closed 1 year ago
On a docker daemon that has IPv6 enabled (in /etc/docker/daemon.json: "ipv6": true,), the healthcheck command fails with:
"ipv6": true,
wget: can't connect to remote host: Connection refused
The command currently is: wget -qO/dev/null http://localhost:8080
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.
On a docker daemon that has IPv6 enabled (in /etc/docker/daemon.json:
"ipv6": true,
), the healthcheck command fails with:The command currently is:
wget -qO/dev/null http://localhost:8080
Investigation shows that the unitd is only listening on the IPv4 socket:
For comparison, the nginx/php-fpm image listens on both IPv4 & 6 sockets.