What is the purpose of HEALTHCHECK in a Dockerfile?

Docker Fundamentals Medium

Docker Fundamentals — Medium

What is the purpose of HEALTHCHECK in a Dockerfile?

Key points

  • HEALTHCHECK runs a command periodically to check container health
  • Updates the container's health status in docker ps
  • Helps users monitor and maintain container health effectively

Ready to go further?

Related questions