culTest

    One of the 50 questions in this topic

    How much do you know about Docker?

    What is a healthcheck in Docker?

    Answers

    A host health check
    A command that checks if the container's main process is working correctlyCorrect
    A security scan of the image
    A network connectivity check

    A healthcheck in Docker is a command that periodically checks if the application inside the container is working correctly. It is defined with the HEALTHCHECK statement in the Dockerfile or when running the container, and allows Docker to monitor the current state of the application, not just whether the process is running.