Question:- What is Docker daemon?
Answer:- Docker daemon is a service that manages Docker containers, images, storage volumes, and the network. It constantly listens to Docker API requests and processes them. A daemon can communicate with other daemons as well for the management of Docker services.
Question:- Name and explain the states of a Docker container.
Answer:- • Created: We see this Docker container state when a container is newly created. • Restarting: When the Docker container is restarted due to any issues, this state is observed. • Running: It is the main state for the container after it has started. • Paused: When a running Docker container is temporarily stopped via docker pause, this is the status that we will see. • Exited: If a container has stopped due to some issue or stopped manually, this will be the state of the container. • Dead: When the daemon has tried but failed to stop a container (mostly because of a busy device or resource), this state will be seen.
Question:- What is Docker Hub?
Answer:- Docker Hub helps with linking to code repositories. This cloud-based registry enables the building, testing, and storing of images in Docker Cloud. Images can also be deployed to the host with it.
Question:- Define Virtualization.
Answer:- Virtualization is the process of logically dividing mainframes to enable more than one application to run at a time.
Question:- What is a Hypervisor?
Answer:- A hypervisor helps in the creation of a virtual environment, in which the guest virtual machines run. It manages the guest systems and checks the required resource allocations to the guests.
Question:- What are Docker object labels?
Answer:- Docker object labels help us add metadata to Docker objects, including containers, images, Swarm nodes, network, volumes, and services.
Question:- What are the steps in a Docker container life cycle?
Answer:- • Build • Pull • Run
Question:- Name the three components of the Docker architecture.
Answer:- • Client • Docker host • Registry
Question:- How do you scale your Docker containers?
Answer:- Docker containers can be scaled to any level, starting from a few hundreds to even thousands or millions of containers. The only condition is that the containers need the memory and the OS all the time, and there should not be a constraint on these when the Docker is getting scaled.
Question:- How does communication happen between Docker client and Docker daemon?
Answer:- The communication between Docker client and Docker daemon happens with the help of the combination of TCP, Rest API, and Socket.IO.
Question:- Explain the implementation method of continuous integration (CI) and continuous deployment (CD) in Docker.
Answer:- • Run Jenkins on Docker • Using docker-compose, run integration tests in Jenkins
Question:- Tell us how you have used Docker in your past position.
Answer:- This is a question wherein we could bring upon our whole experience with Docker and any other Container technologies we have used prior to Docker. We could also explain the ease that this technology has brought in the automation of the development-to-production life cycle management. We can also discuss any other integrations that we might have worked, along with Docker, such as Puppet, Chef, or even the most popular of all technologies—Jenkins. If we do not have any experience with Docker but we have it with similar tools from this space, we could convey the same and also show our interest in learning this leading containerization technology.
Question:- What is Kubernetes?
Answer:- Kubernetes is a container orchestration tool that is used for automating the tasks of managing, monitoring, scaling, and deploying containerized applications. It creates groups of containers that can be logically discovered and managed for easy operations on containers.
Question:- What is a Kubernetes cluster?
Answer:- A Kubernetes cluster is a group of nodes that run containerized applications across various environments and machines—cloud-based, physical, virtual, and on-premises. It enables the easy development of applications as well as their management and movement.