command property
A string array representing the command that the container runs to determine
if it is healthy. The string array must start with CMD
to
execute the command arguments directly, or CMD-SHELL
to run the
command with the container's default shell. For example:
"CMD-SHELL", "curl -f http://localhost/ || exit 1"
An exit code of 0 indicates success, and non-zero exit code indicates
failure. For more information, see HealthCheck
in the Create
a container section of the Docker Remote API.
Implementation
final List<String> command;