Docker MCQ Questions and Answers
Q. What is Docker?
A. A container management systemB. A virtual machine
C. A source code repository
D. A continuous integration tool
Q. What is the main advantage of using Docker?
A. Easy collaborationB. Simplified deployment
C. Improved performance
D. All of the above
Q. What is a Docker image?
A. A template for creating containersB. A running instance of a container
C. A snapshot of a container's file system
D. A set of instructions for building containers
Q. How do you create a Docker image?
A. Use the docker build commandB. Use the docker run command
C. Use the docker create command
D. Use the docker start command
Q. What is a Dockerfile?
A. A text file with instructions to build a Docker imageB. A configuration file for running Docker containers
C. A script file for automating Docker tasks
D. A manifest file for managing Docker images
Q. What is the difference between Docker and a virtual machine?
A. Docker is more lightweight and efficientB. Docker provides a consistent environment across systems
C. Docker is easier to scale and manage
D. All of the above
Q. How do you run a Docker container?
A. Use the docker start commandB. Use the docker run command
C. Use the docker create command
D. Use the docker exec command
Q. How do you connect to a running Docker container?
A. Use the docker attach commandB. Use the docker exec command
C. Use the docker connect command
D. Use the docker shell command
Q. What is a Docker registry?
A. A repository for storing and distributing Docker imagesB. A service for managing and deploying Docker containers
C. A platform for developing and testing Docker applications
D. A tool for monitoring and analyzing Docker containers
Q. How do you push a Docker image to a registry?
A. Use the docker push commandB. Use the docker upload command
C. Use the docker send command
D. Use the docker share command