Back to listShell
Docker Health Check
Lv.3130@mukitaro0 playsJan 2, 2026
Docker HEALTHCHECK script pattern. Exit 0 means healthy, exit 1 means unhealthy.
preview.shell
1if curl -sf http://localhost:8080/health; then2 echo "Service is healthy"3 exit 04else5 echo "Service is unhealthy"6 exit 17fiCustom problems are not included in rankings