1. What is containerization?
A) Virtual machine technology
B) Packaging application with dependencies
C) Programming language
D) Database system
✅ Answer: B
2. Which tool is most commonly used for containerization?
A) Maven
B) Jenkins
C) Docker
D) Git
✅ Answer: C
3. A Docker container is:
A) A lightweight executable package
B) A virtual machine
C) A database
D) A code repository
✅ Answer: A
4. Which file defines how a Docker image is built?
A) docker.yaml
B) docker.conf
C) Dockerfile
D) image.txt
✅ Answer: C
5. Which command builds a Docker image?
A) docker start
B) docker build
C) docker run
D) docker create
✅ Answer: B
6. What does a Docker image contain?
A) Application code only
B) OS kernel
C) Application + dependencies
D) Only database
✅ Answer: C
7. Which command runs a container?
A) docker run
B) docker start-image
C) docker exec-image
D) docker deploy
✅ Answer: A
8. Where are Docker images stored online?
A) GitHub
B) Bitbucket
C) Docker Hub
D) Jenkins
✅ Answer: C
9. What command lists running containers?
A) docker images
B) docker ps
C) docker list
D) docker show
✅ Answer: B
10. What command lists Docker images?
A) docker images
B) docker ps
C) docker list images
D) docker image list
✅ Answer: A
11. Containers share which of the following?
A) Host OS kernel
B) Application code
C) Virtual hardware
D) BIOS
✅ Answer: A
12. Which command stops a container?
A) docker pause
B) docker kill
C) docker stop
D) docker shutdown
✅ Answer: C
13. Which command removes a container?
A) docker delete
B) docker rm
C) docker remove
D) docker erase
✅ Answer: B
14. What command pulls an image from Docker Hub?
A) docker pull
B) docker fetch
C) docker copy
D) docker download
✅ Answer: A
15. A running instance of an image is called:
A) Package
B) Container
C) Build
D) Layer
✅ Answer: B
16. Which command shows container logs?
A) docker logs
B) docker view
C) docker monitor
D) docker track
✅ Answer: A
17. Which instruction is used to specify base image in Dockerfile?
A) BASE
B) START
C) FROM
D) IMAGE
✅ Answer: C
18. Which command starts an existing container?
A) docker begin
B) docker start
C) docker init
D) docker activate
✅ Answer: B
19. Which command removes an image?
A) docker delete image
B) docker rmi
C) docker rmimage
D) docker erase
✅ Answer: B
20. Containers are more lightweight than:
A) APIs
B) Virtual Machines
C) Databases
D) Servers
✅ Answer: B
21. Docker containers start:
A) Slowly
B) Instantly compared to VMs
C) After OS install
D) Only on cloud
✅ Answer: B
22. Which command executes a command inside container?
A) docker exec
B) docker run inside
C) docker enter
D) docker cmd
✅ Answer: A
23. Which instruction copies files into image?
A) ADD or COPY
B) INSERT
C) IMPORT
D) INCLUDE
✅ Answer: A
24. Which command tags an image?
A) docker label
B) docker tag
C) docker name
D) docker assign
✅ Answer: B
25. Which command pushes image to Docker Hub?
A) docker send
B) docker upload
C) docker push
D) docker publish
✅ Answer: C
26. Docker images are built in:
A) Layers
B) Databases
C) Threads
D) Nodes
✅ Answer: A
27. Which command checks Docker version?
A) docker check
B) docker version
C) docker info version
D) docker system
✅ Answer: B
28. Which instruction sets environment variables?
A) ENV
B) SET
C) VAR
D) CONFIG
✅ Answer: A
29. Which instruction runs commands during build?
A) EXEC
B) CMD
C) RUN
D) BUILD
✅ Answer: C
30. CMD instruction defines:
A) Default command when container starts
B) Image build command
C) Host configuration
D) Docker network
✅ Answer: A
31. Container orchestration is commonly handled by:
A) Git
B) Jenkins
C) Kubernetes
D) Maven
✅ Answer: C
32. Docker Compose is used for:
A) Single container
B) Multi-container applications
C) Code building
D) Monitoring
✅ Answer: B
33. Tool used for defining multi-container apps:
A) Docker Compose
B) Git
C) Maven
D) Terraform
✅ Answer: A
34. Which file is used by Docker Compose?
A) docker-compose.yml
B) compose.json
C) docker-compose.txt
D) compose.yaml.txt
✅ Answer: A
35. Docker containers are:
A) Platform dependent
B) Portable
C) Hardware dependent
D) Network dependent
✅ Answer: B
36. Containers help in:
A) Faster deployment
B) Slower builds
C) Manual installation
D) OS dependency
✅ Answer: A
37. Which command shows Docker system info?
A) docker status
B) docker info
C) docker system check
D) docker config
✅ Answer: B
38. Docker images are:
A) Immutable
B) Editable live
C) Dynamic
D) Temporary
✅ Answer: A
39. Which container engine is an alternative to Docker?
A) Git
B) Jenkins
C) Podman
D) Maven
✅ Answer: C
40. Container registries store:
A) Containers
B) Images
C) Networks
D) Databases
✅ Answer: B
41. Docker containers run on:
A) Host machine
B) Internet
C) BIOS
D) Hardware firmware
✅ Answer: A
42. Which command downloads image without running?
A) docker fetch
B) docker pull
C) docker get
D) docker copy
✅ Answer: B
43. Which Docker command shows running processes inside container?
A) docker ps
B) docker top
C) docker stats
D) docker list
✅ Answer: B
44. Which command renames a container?
A) docker rename
B) docker name
C) docker tag container
D) docker label
✅ Answer: A
45. Docker containers help solve:
A) Dependency issues
B) Hardware failures
C) Network cables
D) Programming syntax
✅ Answer: A
46. Containers improve:
A) Portability
B) Hardware usage
C) Code readability
D) Internet speed
✅ Answer: A
47. Docker daemon manages:
A) Containers and images
B) Code repository
C) Databases
D) APIs
✅ Answer: A
48. Docker CLI communicates with:
A) Docker daemon
B) GitHub
C) Database
D) Kubernetes
✅ Answer: A
49. Container isolation is provided by:
A) Linux kernel features
B) BIOS
C) Hardware drivers
D) Network
✅ Answer: A
50. Main advantage of containerization:
A) Portability and consistency
B) Slower deployment
C) Bigger servers
D) Complex setup
✅ Answer: A
Conclusion.
Containerization has become a fundamental skill in modern DevOps workflows. Tools like Docker make it easier to package applications with their dependencies, ensuring they run consistently across different environments. By understanding basic container concepts, commands, and workflows, beginners can build a strong foundation for more advanced technologies such as Kubernetes and Docker Compose.
This beginner container quiz is designed to help you test and reinforce your knowledge of containerization. Whether you answered all the questions correctly or discovered areas to improve, practicing these concepts will strengthen your DevOps skills. Continuous learning and hands-on practice with container tools will prepare you for real-world deployments, automation pipelines, and scalable cloud applications.
Keep exploring, keep practicing, and soon you’ll be confidently building and managing containerized applications in your DevOps journey.



