docker icon indicating copy to clipboard operation
docker copied to clipboard

IPv6 healthcheck fails

Open jtagcat opened this issue 1 year ago • 1 comments

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 avatar Mar 21 '24 22:03 jtagcat

@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"]

AdamVig avatar Apr 07 '24 20:04 AdamVig