[FR] Docker Healthcheck #47

Closed
opened 2025-10-11 03:51:25 -04:00 by J4ker · 2 comments
J4ker commented 2025-10-11 03:51:25 -04:00 (Migrated from github.com)

Please add docker healthchecks to the image file.
https://docs.docker.com/reference/dockerfile/#healthcheck

Please add docker healthchecks to the image file. https://docs.docker.com/reference/dockerfile/#healthcheck
GiamBoscaro commented 2025-10-16 13:28:57 -04:00 (Migrated from github.com)

I actually have the same problem. I tried to setup a simple healthcheck but the Docker container is missing curl, wget and even ping.

What I am using at the moment is this

healthcheck:
      test: ["CMD-SHELL", "bash -c \"echo > /dev/tcp/localhost/8080\" || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3 
      start_period: 5s

so at least I know that the service is listening on port 8080 and thus supposing it is working.

I actually have the same problem. I tried to setup a simple healthcheck but the Docker container is missing `curl`, `wget` and even `ping`. What I am using at the moment is this ```yml healthcheck: test: ["CMD-SHELL", "bash -c \"echo > /dev/tcp/localhost/8080\" || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 5s ``` so at least I know that the service is listening on port 8080 and thus supposing it is working.
bscott commented 2025-10-19 17:00:47 -04:00 (Migrated from github.com)

Thanks for the suggestion

Thanks for the suggestion
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bscott/subtrackr#47
No description provided.