advancedScenario-Based & System Design Questions

A container's `HEALTHCHECK` is defined and passes, but the orchestrator still doesn't restart a clearly hung process inside the container.

If the HEALTHCHECK command itself is hanging or returning success incorrectly (e.g., checking a wrong/unrelated endpoint, or the check process itself getting stuck and timing out in a way that's misinterpreted), the orchestrator never sees a failure signal. Verify the HEALTHCHECK's test command actually exercises the specific failure mode in question, and check `timeout`/`retries` values are tuned so a truly hung check is correctly classified as unhealthy rather than perpetually 'still checking'.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to A team notices that database backups are completing successfully every night, but a recent restore drill revealed the backups are unusable due to a schema-version mismatch with the current restore tooling.← Back to all Docker questions