---
title: "Docker: Containerization Fundamentals"
lang: "en"
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/post/docker-containerization-fundamentals-quiz
---

[Home](/)›[Quizzes](/quizzes)›[All Categories](/quizzes/categories)›[Docker](/quizzes/categories/docker)

Quizzes

[Docker](/quizzes/categories/docker)[Containerization](/quizzes/categories/containerization)[DevOps](/quizzes/categories/devops)[Cloud Native](/quizzes/categories/cloud-native)

# Docker: Containerization Fundamentals

[Mohammad Abu Mattar](/authors/mohammad-abu-mattar)20 QuestionsIntermediatePublished: 28 Jan 2026

[Markdown for AI(opens in a new tab)](/post/docker-containerization-fundamentals-quiz/index.md "Open the plain-Markdown version of this page, for pasting into an AI tool")

Series

[Containers & Kubernetes](/series/containers--kubernetes)1/5

[NextKubernetes: Container Orchestration Essentials](/quizzes/post/kubernetes-orchestration-essentials-quiz)

All posts in this series (5)

Quizzes5

1.  [Docker: Containerization FundamentalsYou are here](/quizzes/post/docker-containerization-fundamentals-quiz)
2.  [Kubernetes: Container Orchestration Essentials](/quizzes/post/kubernetes-orchestration-essentials-quiz)
3.  [Helm: Kubernetes Package Management Essentials](/quizzes/post/helm-kubernetes-package-management-quiz)
4.  [Istio: Service Mesh Fundamentals](/quizzes/post/istio-service-mesh-fundamentals-quiz)
5.  [Kubernetes Advanced: Production Operations & Scaling](/quizzes/post/kubernetes-advanced-quiz)

## Docker: Containerization Fundamentals

Up to 20 questions, shuffled on every run

Quiz Configuration

Enterto start

Welcome to the Docker Basics Quiz! This quiz covers fundamental Docker concepts, containerization, and best practices. Each question is multiple-choice, and you’ll find hints to help you along the way. Good luck!

Answer key and explanations20 questions

The quiz above draws 20 questions at random from these 30, so a second attempt will not be the same run. Everything in the pool is listed here.

1.  Which Dockerfile instruction specifies the base image for a new container?
    
    Answer\`FROM\`
    
2.  Which command is used to build an image from a Dockerfile?
    
    Answer\`docker build\`
    
3.  What is the primary difference between CMD and ENTRYPOINT?
    
    Answer\`ENTRYPOINT\` sets the executable; \`CMD\` sets default arguments
    
4.  Which command displays the list of currently running containers?
    
    Answer\`docker ps\`
    
5.  What does the -d flag do when running a container?
    
    AnswerStarts the container in detached background mode
    
6.  Which instruction allows you to set environmental variables within a Dockerfile?
    
    Answer\`ENV\`
    
7.  What is a Docker "Layer"?
    
    AnswerA read-only filesystem change from a command
    
8.  How do you stop all running Docker containers at once?
    
    Answer\`docker stop $(docker ps -q)\`
    
9.  Which Docker network driver is the default for standalone containers?
    
    Answer\`Bridge\`
    
10.  What is the purpose of a Docker ".dockerignore" file?
     
     AnswerExcludes local files from being sent to the build context
     
11.  Which command allows you to enter a running container and start a shell?
     
     Answer\`docker exec -it <id> /bin/bash\`
     
12.  What is the command to delete a specific Docker image?
     
     Answer\`docker rmi\`
     
13.  What is a "Volume" in Docker?
     
     AnswerA persistent storage area managed by Docker
     
14.  In "docker run -p 8080:80 nginx", which port is the host port?
     
     Answer8080
     
15.  Which instruction defines the directory where subsequent commands will be executed?
     
     Answer\`WORKDIR\`
     
16.  What is "Multi-stage building"?
     
     AnswerUsing separate stages to reduce final image size
     
17.  Which command is used to see the metadata (IP, Config, etc.) of a container?
     
     Answer\`docker inspect\`
     
18.  What is the purpose of "Docker Hub"?
     
     AnswerA public registry for sharing container images
     
19.  What is "Copy-on-Write" (CoW)?
     
     AnswerA strategy that copies files only when modified
     
20.  Which command pulls an image from a registry without running it?
     
     Answer\`docker pull\`
     
21.  What does "docker system prune" do?
     
     AnswerRemoves unused data like stopped containers
     
22.  Which Dockerfile instruction is used to document intended ports?
     
     Answer\`EXPOSE\`
     
23.  What is a "Dangling Image"?
     
     AnswerAn image that has no name tag or reference
     
24.  Which command starts a previously stopped container?
     
     Answer\`docker start\`
     
25.  What is the default user in most Docker images if not specified?
     
     Answer\`root\`
     
26.  Which command logs you into a Docker registry?
     
     Answer\`docker login\`
     
27.  What is Docker Compose used for?
     
     AnswerRunning multi-container apps using YAML files
     
28.  Which flag is used to name a container during "docker run"?
     
     Answer\--name
     
29.  What is the purpose of the "HEALTHCHECK" instruction?
     
     AnswerTo check if the application inside is functional
     
30.  What command shows the history of an image?
     
     Answer\`docker history\`
     

## Tags

[#Docker](/quizzes/tags/docker)[#Containers](/quizzes/tags/containers)[#Dockerfile](/quizzes/tags/dockerfile)[#Docker Images](/quizzes/tags/docker-images)[#Docker Compose](/quizzes/tags/docker-compose)[#Containerization](/quizzes/tags/containerization)[#Docker Networking](/quizzes/tags/docker-networking)[#Docker Volumes](/quizzes/tags/docker-volumes)[#Container Orchestration](/quizzes/tags/container-orchestration)

## Share

[Facebook](https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz "Share on Facebook")[Twitter](https://twitter.com/intent/tweet/?text=Docker%3A%20Containerization%20Fundamentals&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz "Share on Twitter")[LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz&title=Docker%3A%20Containerization%20Fundamentals&summary=Test%20your%20knowledge%20of%20Docker%20fundamentals%20with%20a%20quiz%20covering%20containers%2C%20images%2C%20Dockerfiles%2C%20networking%2C%20volumes%2C%20Docker%20Compose%2C%20and%20containerization%20best%20practices.&source=https://mkabumattar.com "Share on LinkedIn")[WhatsApp](https://wa.me/?text=Docker%3A%20Containerization%20Fundamentals%20https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz "Share on WhatsApp")[Telegram](https://t.me/share/url?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz&text=Docker%3A%20Containerization%20Fundamentals "Share on Telegram")[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz&title=Docker%3A%20Containerization%20Fundamentals "Share on Reddit")[Hacker News](http://news.ycombinator.com/submitlink?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz&t=Docker%3A%20Containerization%20Fundamentals "Share on Hacker News")[Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz&media=&description=Test%20your%20knowledge%20of%20Docker%20fundamentals%20with%20a%20quiz%20covering%20containers%2C%20images%2C%20Dockerfiles%2C%20networking%2C%20volumes%2C%20Docker%20Compose%2C%20and%20containerization%20best%20practices. "Share on Pinterest")[Email](<mailto:?subject=Docker%3A%20Containerization%20Fundamentals&body=Check out this article: https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fdocker-containerization-fundamentals-quiz>)

## Comments

Was this useful?

## You might also enjoy

More posts on similar topics

[![Kubernetes: Container Orchestration Essentials](/_astro/hero.B3yPOBkm_Zf3jf0.webp)](/quizzes/post/kubernetes-orchestration-essentials-quiz)

## [Kubernetes: Container Orchestration Essentials](/quizzes/post/kubernetes-orchestration-essentials-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Kubernetes](/quizzes/categories/kubernetes)
-   [Container Orchestration](/quizzes/categories/container-orchestration)
-   [DevOps](/quizzes/categories/devops)
-   [Cloud Native](/quizzes/categories/cloud-native)

Welcome to the Kubernetes Basics Quiz! This quiz covers fundamental Kubernetes concepts, container orchestration, and cloud-native application deployment best practices. Each question is multiple-choi

[#Kubernetes](/quizzes/tags/kubernetes)[#K8s](/quizzes/tags/k8s)[#Pods](/quizzes/tags/pods)+6 tags

[read more](/quizzes/post/kubernetes-orchestration-essentials-quiz)

[![Helm: Kubernetes Package Management Essentials](/_astro/hero.DPkStt76_OcQ2e.webp)](/quizzes/post/helm-kubernetes-package-management-quiz)

## [Helm: Kubernetes Package Management Essentials](/quizzes/post/helm-kubernetes-package-management-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Kubernetes](/quizzes/categories/kubernetes)
-   [DevOps](/quizzes/categories/devops)
-   [Cloud Native](/quizzes/categories/cloud-native)

Welcome to the Helm Basics Quiz! Helm is the "Package Manager for Kubernetes," and understanding it matters for any modern DevOps engineer. This quiz will test your knowledge of how charts are structu

[#Helm](/quizzes/tags/helm)[#K8s](/quizzes/tags/k8s)[#Package Management](/quizzes/tags/package-management)+2 tags

[read more](/quizzes/post/helm-kubernetes-package-management-quiz)

[![Kubernetes Advanced: Production Operations & Scaling](/_astro/hero.C_QWbDvs_Z26iGLJ.webp)](/quizzes/post/kubernetes-advanced-quiz)

## [Kubernetes Advanced: Production Operations & Scaling](/quizzes/post/kubernetes-advanced-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Container Orchestration](/quizzes/categories/container-orchestration)
-   [DevOps](/quizzes/categories/devops)

Welcome to the Kubernetes Advanced Quiz! This quiz is designed to test your knowledge of Kubernetes concepts related to production operations and scaling. Each question will challenge your understandi

[#Kubernetes](/quizzes/tags/kubernetes)[#DevOps](/quizzes/tags/devops)[#Infrastructure](/quizzes/tags/infrastructure)

[read more](/quizzes/post/kubernetes-advanced-quiz)

[![Istio: Service Mesh Fundamentals](/_astro/hero.ic-MS8aq_Z8sHT8.webp)](/quizzes/post/istio-service-mesh-fundamentals-quiz)

## [Istio: Service Mesh Fundamentals](/quizzes/post/istio-service-mesh-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Istio](/quizzes/categories/istio)
-   [Service Mesh](/quizzes/categories/service-mesh)
-   [Quizzes](/quizzes/categories/quizzes)

Welcome to the Istio Basics Quiz! Istio is often the "final boss" of Kubernetes infrastructure. It adds traffic control and security that production-grade microservices depend on. This quiz will test

[#Istio](/quizzes/tags/istio)[#Service mesh](/quizzes/tags/service-mesh)[#Kubernetes](/quizzes/tags/kubernetes)+11 tags

[read more](/quizzes/post/istio-service-mesh-fundamentals-quiz)

[![Linux: System Administration Fundamentals](/_astro/hero.iaBV-jGL_Z26okHM.webp)](/quizzes/post/linux-system-administration-fundamentals-quiz)

## [Linux: System Administration Fundamentals](/quizzes/post/linux-system-administration-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Linux](/quizzes/categories/linux)
-   [Operating Systems](/quizzes/categories/operating-systems)
-   [System Administration](/quizzes/categories/system-administration)
-   [DevOps](/quizzes/categories/devops)

Welcome to the Linux Basics Quiz! This quiz covers fundamental Linux concepts, commands, and system administration best practices. Each question is multiple-choice, and you'll find hints to help you a

[#Linux](/quizzes/tags/linux)[#Linux Commands](/quizzes/tags/linux-commands)[#File System](/quizzes/tags/file-system)+6 tags

[read more](/quizzes/post/linux-system-administration-fundamentals-quiz)

[![AWS: Cloud Services & Architecture Fundamentals](/_astro/hero.oqkygCRI_Z1z1BIU.webp)](/quizzes/post/aws-architecture-essentials-quiz)

## [AWS: Cloud Services & Architecture Fundamentals](/quizzes/post/aws-architecture-essentials-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [AWS](/quizzes/categories/aws)
-   [Cloud Computing](/quizzes/categories/cloud-computing)
-   [DevOps](/quizzes/categories/devops)
-   [Cloud Engineering](/quizzes/categories/cloud-engineering)

Welcome to the AWS Basics Quiz! This quiz covers fundamental AWS concepts and best practices. Each question is multiple-choice, and you'll find hints to help you along the way. Good luck!

[#AWS](/quizzes/tags/aws)[#Amazon Web Services](/quizzes/tags/amazon-web-services)[#Cloud Architecture](/quizzes/tags/cloud-architecture)+5 tags

[read more](/quizzes/post/aws-architecture-essentials-quiz)

6 related posts
