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. |
Can you tell the difference between CMD and ENTRYPOINT? |
Answer»
|
|
| 2. |
What is the best way of deleting a container? |
|
Answer» We NEED to follow the following two steps for deleting a CONTAINER: |
|
| 3. |
What is the way to establish communication between docker host and Linux host? |
|
Answer» This can be done using networking by IDENTIFYING the “ipconfig” on the docker HOST. This COMMAND ensures that an ethernet adapter is created as LONG as the docker is present in the host. |
|
| 4. |
Can you differentiate between Daemon Logging and Container Logging? |
Answer»
|
|
| 5. |
List the most commonly used instructions in Dockerfile? |
Answer»
|
|
| 6. |
Can you tell the approach to login to the docker registry? |
|
Answer» USING the DOCKER login command CREDENTIALS to log in to their own cloud repositories can be entered and ACCESSED. |
|
| 7. |
What are the basic requirements for the docker to run on any system? |
|
Answer» Docker can run on both Windows and Linux platforms.
|
|
| 8. |
Can you tell the what are the purposes of up, run, and start commands of docker compose? |
Answer»
|
|
| 9. |
What does the docker info command do? |
|
Answer» The command gets DETAILED INFORMATION about DOCKER installed on the host system. The information can be like what is the number of containers or IMAGES and in what state they are running and hardware specifications like total memory allocated, speed of the processor, kernel version, ETC. |
|
| 10. |
Where are docker volumes stored in docker? |
|
Answer» VOLUMES are created and managed by Docker and cannot be ACCESSED by non-docker entities. They are STORED in Docker host filesystem at /var/lib/docker/volumes/ |
|
| 11. |
What is the purpose of the volume parameter in a docker run command? |
Answer»
|
|
| 12. |
Can you tell the differences between a docker Image and Layer? |
|
Answer» Image: This is built up from a series of read-only layers of instructions. An image corresponds to the docker container and is used for speedy OPERATION due to the caching MECHANISM of each step. |
|
| 13. |
Can a container restart by itself? |
Answer»
|
|
| 14. |
Differentiate between COPY and ADD commands that are used in a Dockerfile? |
|
Answer» Both the commands have similar functionality, but COPY is more preferred because of its HIGHER transparency level than that of ADD. |
|
| 15. |
Differentiate between virtualization and containerization. |
||||||||
|
Answer» The question INDIRECTLY translates to explaining the difference between virtual MACHINES and Docker containers.
|
|||||||||