Explanation: A Docker registry is a service for storing and distributing Docker images. Docker Hub is a common public registry.
Dear candidates you will find MCQ questions of Docker here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: A Docker registry is a service for storing and distributing Docker images. Docker Hub is a common public registry.
Explanation: The 'docker rm' command removes a stopped container.
Explanation: The 'docker run' command starts a new container from a specified image.
Explanation: Docker volumes are used to persist data in containers, ensuring data remains intact across container restarts.
Explanation: The 'docker logs' command is used to view the logs of a running or stopped container.
Explanation: The 'docker images' command lists all Docker images available on the local machine.
Explanation: A Dockerfile defines the steps and commands needed to build a Docker image.
Explanation: The '-d' flag in the 'docker run' command is used to run the container in detached mode (in the background).
Explanation: The 'docker ps' command is used to view the currently running containers.
Explanation: The 'docker stop' command stops a running Docker container.