docker
docker copied to clipboard
IPv6 healthcheck fails
With test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/api/info"], same applies for previous healthcheck versions.
With latest docker upgrade on Ubuntu LTS, localhost started defaulting to IPv6 within the container. This causes the healthcheck to fail (and therefore disables routing by the reverse proxy).
@jtagcat @bfkss @Pummelfisch I was able to resolve this by replacing localhost with 127.0.0.1, i.e.:
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://127.0.0.1/api/info"]