Docker and CI/CD · Junior · Question 38 of 75

What does a HEALTHCHECK instruction add to a container?

Explanation

Status appears in docker ps and can gate Compose startup (service_healthy). Plain Docker doesn't restart unhealthy containers by itself.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 38

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz