Questions et réponses d'entretien les plus demandées et tests en ligne
Plateforme d'apprentissage pour la preparation aux entretiens, les tests en ligne, les tutoriels et la pratique en direct

Developpez vos competences grace a des parcours cibles, des tests blancs et un contenu pret pour l'entretien.

WithoutBook rassemble des questions d'entretien par sujet, des tests pratiques en ligne, des tutoriels et des guides de comparaison dans un espace d'apprentissage reactif.

Preparation a l'entretien

Docker Questions et reponses d'entretien

Question 21. What is the purpose of the HEALTHCHECK instruction in a Dockerfile?

The HEALTHCHECK instruction adds a health check to a Docker image. It allows you to define a command to check the health of a running container and provide feedback to Docker.

Example:

HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost/ || exit 1

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 22. How do you pass environment variables to a Docker container?

Environment variables can be passed to a Docker container using the `-e` or `--env` option with the `docker run` command.

Example:

docker run -e MY_VARIABLE=value my_image

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 23. Explain the concept of Docker Overlay Network.

Docker Overlay Network is a multi-host network that connects Docker containers using overlay drivers. It enables communication between containers running on different Docker hosts.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 24. What is Docker Registry?

Docker Registry is a storage and distribution system for Docker images. It can be a public registry like Docker Hub or a private registry hosted within an organization.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 25. How do you build a Docker image from a Dockerfile?

You can use the `docker build` command followed by the path to the directory containing the Dockerfile.

Example:

docker build -t my_image:latest .

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.