Explanation: A Dockerfile is a text document that contains instructions for building a Docker image.
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 Dockerfile is a text document that contains instructions for building a Docker image.
Explanation: The default network driver in Docker is 'bridge', which creates a private internal network for containers.
Explanation: The 'docker stop' command gracefully stops a running container.
Explanation: Docker Hub is a cloud-based repository where Docker users can store and share Docker images.
Explanation: The 'docker rm' command is used to remove one or more containers.
Explanation: The EXPOSE instruction documents which ports are intended to be used by the container.
Explanation: The 'docker build' command builds an image from a Dockerfile.
Explanation: The CMD instruction specifies the default command to run when the container starts.
Explanation: The 'docker logs' command fetches the logs of a container.
Explanation: The ENTRYPOINT instruction defines the default command to run when the container starts.