Docker MCQs with answers
658 docker multiple choice questions with the correct answer and a short explanation for each. Last updated 25 Jul 2025. Showing page 33 of 33.
- What is the purpose of the CMD instruction in a Dockerfile?
- Which command is used to build a Docker image from a Dockerfile?
- What is the purpose of the EXPOSE instruction in a Dockerfile?
- Which command is used to remove a Docker container?
- What is Docker Hub?
- Which command is used to stop a running Docker container?
- What is the default network driver in Docker?
- Which file is used to define a Docker image?
- What is the purpose of Docker Compose?
- Which command lists all running Docker containers?
- What is a Docker image?
- Which command is used to create a new Docker container?
- What is Docker?
- Which Docker command is used to download an image from Docker Hub?
- What does the 'docker run' command do?
- Which file is used to define a Docker image build process?
- Which command is used to list all running Docker containers?
- What is Docker primarily used for?
About the Docker question set
These questions are contributed by users and published after review. Each page shows all four options, the correct answer and an explanation, so you can revise a topic in a few minutes. Start from page one for the newest additions, or open any question and use the topic tags under it to reach related sets.