Skip to content

Docker Basics Quiz

Back to Quiz Home

Welcome! 🐳
Test your fundamental Docker knowledge with this quick quiz.

Instructions:

  • Select the best answer for each question.
  • Your score will be shown at the end.
  • Aim for 100% to prove you are ready for the next level!
#

Which command is used to run a container from an image?

#

What is a Docker Image?

#

Which file is used to build a Docker image?

#

Which command lists all running containers?

#

How do you stop a running container?

#

Which command downloads an image from a registry?

#

What does the -d flag do in docker run -d nginx?

#

Which command removes a stopped container?

#

Which instruction in a Dockerfile sets the base image?

#

Where are Docker images usually stored?

#

Which command builds an image from a Dockerfile in the current directory?

#

What is the default name of the Docker configuration file that defines a multi-container application?

#

Which command is used to view the logs of a container?

#

What does the -v flag do in docker run?

#

Which command lists all locally available images?

#

How can you execute a command inside a running container?

#

What is a Docker Registry?

#

Which command removes an image?

#

What is the purpose of the EXPOSE instruction in a Dockerfile?

#

Which flag automates the cleanup of the container after it exits?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides