🐳 Docker Master Quiz

Test your knowledge of Docker with this comprehensive quiz!

Question 1: Which command is used to create and start a container from an image?
docker create
docker run
docker start
docker launch
Question 2: What is the purpose of a Dockerfile?
To store Docker images
To run Docker containers
To define how to build an image
To manage Docker networks
Question 3: Which command shows all running containers?
docker ps
docker ls
docker list
docker show
Question 4: What is Docker Compose used for?
To build single containers
To define and run multi-container applications
To store Docker images
To scan Docker images for vulnerabilities
Question 5: Which of these is NOT a valid Dockerfile instruction?
FROM
RUN
EXECUTE
COPY
Question 6: The command to remove a Docker image is: docker _____
Question 7: The Dockerfile instruction to set environment variables is: _______
Question 8: To expose a port in a Dockerfile, use the _______ instruction
Question 9: The file that defines Docker Compose services is typically named: docker-compose._____
Question 10: To specify the base image in a Dockerfile, use the ______ instruction

Your Score: 0/10

Percentage: 0.0%