advancedTop 100 Interview Questions

What does HEALTHCHECK actually do?

It defines a command Docker runs periodically inside the container to determine if it's `healthy`, `unhealthy`, or still `starting`; this status is visible via `docker ps`/`docker inspect` and can be used by orchestrators to make scheduling and load-balancing decisions, independent of whether the main process is merely still running.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

What does HEALTHCHECK actually do?

Next Step

Continue to Why might EXPOSE alone not be enough to access a container's service?← Back to all Docker questions