Interview Questions and Answers
Experienced / Expert level questions & answers
Ques 1. How does Docker Swarm differ from Kubernetes?
Docker Swarm and Kubernetes are both orchestration tools for managing containerized applications. Kubernetes is more feature-rich and widely adopted, while Docker Swarm is simpler to set up and use for smaller deployments.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 2. 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
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 3. Explain the concept of Docker Orchestration.
Docker Orchestration involves the automated coordination and management of multiple containers to ensure they work together seamlessly. It includes tools like Docker Swarm and Kubernetes.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Most helpful rated by users: