Why "|| exit 1"?

Continuing the discussion from HEALTCHECK command, curl command and HTTP status codes:

Does the exit code really need to be 1 on failure instead of any non-zero value? Normally any non-zero value indicates failure so I don’t see why this is necessary.

No problem, I googled the docs for you using the search terms “docker healthcheck”.

This is a quote from the first result:

1 Like