Skip to content

Docker Compose Healthcheck

As of now the healthcheck for engine-api fails.

healthcheck:
      test: [ "CMD", "nc", "-z", "-w", "3", "localhost", "8008" ]

The health report indicates that ncat is not installed in the container. Therefore the healthcheck can not be executed.

...
{
                    "Start": "2023-03-31T13:00:14.435556734+02:00",
                    "End": "2023-03-31T13:00:14.552282494+02:00",
                    "ExitCode": -1,
                    "Output": "OCI runtime exec failed: exec failed: unable to start container process: exec: \"nc\": executable file not found in $PATH: unknown"
                },
...