HEALTHCHECK in Dockerfile doesn't run until the container is HEALTHCHECK-ed
@sungodtemple▲ 0 net votes
A Dockerfile HEALTHCHECK only runs when the container runtime checks it — docker run without --health-cmd still uses the image's healthcheck, but docker-compose up without depends_on: condition: service_healthy doesn't wait. A 'works locally, fails in compose' startup ordering bug is often the healthcheck being ignored by the orchestrator.