Closed JoshuaLicense closed 4 months ago
Description: This PR maps any returned cURL exit codes to possible values for the Docker HEALTHCHECK instruction.
HEALTHCHECK
Docker HEALTHCHECK instruction possible values:
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
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
Source: https://docs.docker.com/engine/reference/builder/#healthcheck
cURL exit codes: https://everything.curl.dev/cmdline/exitcode
Hi @JoshuaLicense ,
Good catch! The current way does work (I've had unhealthy containers), but it's not correct. Merged! :tada:
Description: This PR maps any returned cURL exit codes to possible values for the Docker
HEALTHCHECK
instruction.Docker
HEALTHCHECK
instruction possible values:Source: https://docs.docker.com/engine/reference/builder/#healthcheck
cURL exit codes: https://everything.curl.dev/cmdline/exitcode