# HEALTHCHECK

> What does the HEALTHCHECK instruction in a Dockerfile do, and how does Docker use the result?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-healthcheck-instruction
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What does the HEALTHCHECK instruction in a Dockerfile do, and how does Docker use the result?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

HEALTHCHECK, Health Status, start-period, depends_on service_healthy, Liveness Probe

Previous: [User Namespaces](https://www.internhack.in/learn/interview/docker-containers/docker-user-namespace-remapping) · Next: [Tmpfs Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-tmpfs-mounts) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Compose Scaling](https://www.internhack.in/learn/interview/docker-containers/docker-compose-scaling)
- [Docker Context](https://www.internhack.in/learn/interview/docker-containers/docker-context-management)
- [Storage Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-storage-drivers)
- [Kill vs. Stop](https://www.internhack.in/learn/interview/docker-containers/docker-kill-vs-stop)
- [Renaming Containers](https://www.internhack.in/learn/interview/docker-containers/docker-rename-container)
- [Pause/Unpause](https://www.internhack.in/learn/interview/docker-containers/docker-pause-unpause)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
