Is this a docs issue?
Type of issue
Information is incorrect
Description
The documentation says:
For more information on HEALTHCHECK, see the Dockerfile reference.
The Dockerfile reference says:
The command's exit status indicates the health status of the container. The possible values are:
- 0: success - the container is healthy and ready for use
- 1: unhealthy - the container isn't working correctly
- 2: reserved - don't use this exit code
However, the Docker Compose documentation gives this example:
test: ["CMD", "curl", "-f", "http://localhost"]
curl usually produces an exit status other than 1 for errors.
Location
https://docs.docker.com/reference/compose-file/services/#healthcheck
Suggestion
No response
Is this a docs issue?
Type of issue
Information is incorrect
Description
The documentation says:
The Dockerfile reference says:
However, the Docker Compose documentation gives this example:
curlusually produces an exit status other than 1 for errors.Location
https://docs.docker.com/reference/compose-file/services/#healthcheck
Suggestion
No response