Intermediate Docker & Containers
Q46 / 100

What is the purpose of "healthcheck" configuration in Docker?

Correct! Well done.

Incorrect.

The correct answer is B) It defines a command Docker periodically runs inside the container to determine if the application is functioning correctly, reporting status as healthy, unhealthy, or starting

B

Correct Answer

It defines a command Docker periodically runs inside the container to determine if the application is functioning correctly, reporting status as healthy, unhealthy, or starting

Explanation

HEALTHCHECK instructions (or compose healthcheck config) let Docker monitor container health by periodically running a test command, which orchestration tools can use to restart unhealthy containers.

Progress
46/100