Docker Container MCQ

Docker Container MCQs : This section focuses on "Container" 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. ___________ are instances of Docker images that can be run using the Docker run command.

A. Hub
B. Container
C. File
D. Cloud

View Answer


2. Running of containers is managed with the Docker ______ command.

A. CREATE
B. INSERT
C. RUN
D. SUDO

View Answer


3. One can list all of the containers on the machine via the ____________ command.

A. docker run
B. docker pc
C. docker r
D. docker ps

View Answer


4. Which of the following tells the docker ps command to list all of the containers on the system?

A. -p
B. -r
C. -a
D. -z

View Answer


5. Which command you can see all the commands that were run with an image via a container.

A. ref
B. history
C. -a
D. hist

View Answer


6. ContainerID is the Container ID for which you want to see the top processes.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


7. which command is used to stop a running container?

A. drop
B. remove
C. stop
D. delete

View Answer


8. Which command is used to delete a container?

A. delete
B. remove
C. rm
D. drop

View Answer


9. docker stats command is used to provide the statistics of a running container.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


10. docker top you can see the top processes within a container.

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer





Discussion



* You must be logged in to add comment.