InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What command is used to check for the version of docker client and server? |
Answer»
|
|
| 2. |
Can a paused container be removed from Docker? |
|
Answer» No, it is not POSSIBLE! A container MUST be in the stopped STATE before we can remove it. |
|
| 3. |
What command can be run to import a pre-exported Docker image into another Docker host? |
|
Answer» This can be done using the DOCKER load command and the syntax is docker load -i <export_image_name>.TAR |
|
| 4. |
What command can you run to export a docker image as an archive? |
|
Answer» This can be DONE USING the DOCKER save command and the SYNTAX is: docker save -o <exported_name>.tar <container-name> |
|
| 5. |
What is a Docker Hub? |
Answer»
|
|
| 6. |
How many Docker components are there? |
|
Answer» There are three docker components, they are - Docker Client, Docker Host, and Docker Registry.
|
|
| 7. |
What is docker image registry? |
Answer»
|
|
| 8. |
On what circumstances will you lose data stored in a container? |
|
Answer» The DATA of a CONTAINER REMAINS in it until and UNLESS you DELETE the container. |
|
| 9. |
What is the docker command that lists the status of all docker containers? |
|
Answer» In ORDER to get the status of all the CONTAINERS, we RUN the below command: DOCKER ps -a |
|
| 10. |
Can you tell something about docker namespace? |
|
Answer» A namespace is basically a Linux feature that ensures OS resources partition in a mutually EXCLUSIVE manner. This forms the core concept BEHIND containerization as namespaces introduce a layer of isolation AMONGST the containers. In docker, the namespaces ensure that the containers are portable and they don't affect the underlying HOST. Examples for namespace types that are currently being supported by Docker – PID, Mount, USER, Network, IPC. |
|
| 11. |
What can you tell about Docker Compose? |
|
Answer» It is a YAML file consisting of all the details regarding various services, networks, and volumes that are needed for setting up the Docker-based application. So, docker-compose is used for CREATING multiple CONTAINERS, HOST them and establish communication between them. For the purpose of communication amongst the containers, ports are exposed by each and every CONTAINER. |
|
| 12. |
Can you tell what is the functionality of a hypervisor? |
|
Answer» A hypervisor is a software that makes virtualization happen because of which is sometimes referred to as the Virtual Machine MONITOR. This divides the resources of the HOST system and allocates them to each guest environment installed.
|
|
| 13. |
What is a DockerFile? |
| Answer» | |
| 14. |
What are docker images? |
|
Answer» They are executable packages(bundled with application code & dependencies, SOFTWARE packages, etc.) for the purpose of creating containers. DOCKER images can be deployed to any docker environment and the containers can be spun up there to RUN the application. |
|
| 15. |
Can you tell something about docker container? |
Answer»
|
|