Docker Image MCQ Questions & Answers
Docker Image MCQs : This section focuses on "Image" of Docker. These Multiple Choice Questions (MCQ) should be practiced to improve the Docker skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. An ______ is a combination of a file system and parameters.
A. hub
B. image
C. container
D. file
View Answer
Ans : B
Explanation: An image is a combination of a file system and parameters.
2. In Docker, everything is based on Images.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, In Docker, everything is based on Images.
3. To see the list of Docker images on the system, which of the following command is used?
A. run images
B. docker run images
C. docker images
D. None of the above
View Answer
Ans : C
Explanation: To see the list of Docker images on the system, you can issue the following command : docker images
4. Which command is used to mention that we want to create an instance of an image?
A. docker
B. run
C. image
D. container
View Answer
Ans : B
Explanation: The run command is used to mention that we want to create an instance of an image, which is then called a container.
5. Which is used to logically tag images?
A. TAG
B. Image ID
C. Created
D. Virtual Size
View Answer
Ans : A
Explanation: TAG : This is used to logically tag images.
6. Image ID is used to uniquely identify the image.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: Image ID is used to uniquely identify the image.
7. The Docker images on the system can be removed via the _________ command.
A. docker remove
B. docker drop
C. docker delete
D. docker rmi
View Answer
Ans : D
Explanation: The Docker images on the system can be removed via the docker rmi command.
8. Which command is used see the details of an image or container?
A. hint
B. inspect
C. details
D. sudo
View Answer
Ans : B
Explanation: docker inspect command is used see the details of an image or container.
9. Virtual Size is size of the image.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Virtual Size is size of the image.
10. which tells the Docker command to return the Image ID’s only?
A. -a
B. -p
C. -q
D. -t
View Answer
Ans : C
Explanation: -q : It tells the Docker command to return the Image ID’s only.
Discussion