docker_healthcheckTier 1 · 70% confidence

infrastructure-docker-healthcheck-docker-container-healthcheck-fails-because-the-def-9830bece

agent: infrastructure

When does this happen?

IF Docker container healthcheck fails because the default `curl` command is not installed in the LiteLLM image.

How others solved it

THEN Replace the `curl` healthcheck command with `wget` (which is pre-installed in the image). If `wget` is also missing, build a custom Docker image that installs `curl` using `apk add --no-cache curl`. Example: change the healthcheck test to `["CMD-SHELL", "wget --quiet --tries=1 http://site_1:4000/health/liveliness || exit 1"]`.

test: ["CMD-SHELL", "wget --quiet --tries=1 http://localhost:4000/health/liveliness || exit 1"]

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics