1Q: What is Docker?
A: Docker is a platform for containerizing applications that allows developers to create, deploy, and run applications in isolated containers.
2Q: What is a container in Docker?
A: A container is a lightweight, standalone executable package of software that includes everything needed to run an application, including code, libraries, and system tools.
3Q: What is the difference between a Docker container and a virtual machine?
A: A Docker container shares the host operating system's kernel and resources, while a virtual machine has its own kernel and runs a separate guest operating system.
4Q: What is a Docker image?
A: A Docker image is a read-only template that contains everything needed to run an application, including the code, libraries, and system tools.
5Q: What is a Dockerfile?
A: A Dockerfile is a text file that contains instructions for building a Docker image.
6Q: What is the difference between ADD and COPY in a Dockerfile?
A: ADD copies files from the source directory and can also retrieve remote files and extract archives, while COPY only copies files from the source directory.
7Q: What is a Docker registry?
A: A Docker registry is a central repository for storing and sharing Docker images.
8Q: What is the difference between a Docker container and an image?
A: A Docker image is a read-only template that contains everything needed to run an application, while a Docker container is a running instance of an image.
9Q: What is the difference between Docker compose and Docker swarm?
A: Docker compose is a tool for defining and running multi-container Docker applications, while Docker swarm is a tool for orchestrating and scaling a cluster of Docker nodes.
10Q: How do you share data between Docker containers?
A: Data can be shared between Docker containers using shared volumes or networked file systems.
11Q: What is Docker Compose?
A: Docker Compose is a tool for defining and running multi-container Docker applications.
12Q: What is the difference between a Docker container and a Docker stack?
A: A Docker container is a single instance of an image, while a Docker stack is a group of containers that work together to provide a complete application.
13Q: What is the difference between Docker and Kubernetes?
A: Docker is a platform for containerizing applications, while Kubernetes is a container orchestration platform for managing and scaling containerized applications.
14Q: What is a Docker swarm?
A: Docker swarm is a tool for orchestrating and scaling a cluster of Docker nodes. It provides features such as load balancing, service discovery, and automated scaling.