Interview Questions on Docker







1. Introduction

a. Objective: Below problems help you to understand the installation process.

b. Benefits: Able to install the docker from the package.

1. How to install docker in Ubuntu from the package?

Ans: Step 1: Download the deb package

https://download.docker.com/linux/ubuntu/dists/

Step 2: Install the package

Command: sudo dpkg -i /path/to/package.deb

2. How to verify whether it is installed properly or not?

Ans: Command: docker run hello-world

3. How to uninstall the docker?

Ans: Step 1: Uninstall the Docker CE Package

Command: sudo apt-get purge docker-ce

Step 2: Delete all images, containers, and volumes.

Command: sudo rm -rf /var/lib/docker

4. What is Docker?

Ans: Docker is an open platform for developing, shipping and running applications.

5. What is Container?

Ans: Docker provides the ability to package and run an application in a loosely isolated environment called a container.

Click on below link for Advanced Docker Interview QA book:

https://amzn.to/2E0aauM

6. What is the advantage of isolation and security?

Ans: Allow you to run many containers simultaneously on a given host.

7. What is docker engine and what are the major component of the docker engine?

Ans: Docker engine is a client-server application.


a. Server: A server which is a type of long-running program called a daemon process

b. REST API: which specifies interfaces that programs can use to talk to the daemon and instruct
it what to do.

c. Client: A command line interface (CLI).

8. What are the different uses of the docker?

Ans: The different uses of the docker are as follows:

1. Fast, Consistent delivery of your applications
2. Responsive deployment and scaling
3. Running more workloads on the same hardware.

9. What are the responsibilities of the docker daemon?

Ans: The responsibilities of the docker daemon are as follows:

1. listens for docker API requests
2. manages docker objects such as images, containers, networks, and volumes.
3. communicate with other daemons to manage docker services.

10. What are the responsibilities of the docker client?

Ans: The responsibilities of the docker daemon are as follows:


 1. Many docker users interact with docker.

Click on below link for Advanced Docker Interview QA book:

https://amzn.to/2E0aauM

Comments

Popular posts from this blog

Python & Shell Scripting Real Time Course Book & Videos

Top Five Devops Technical Interview QA Books

Linux-Command Hands-On (DF)