21.) What is the role of Docker CLI?
A) To provide a command-line interface for interacting with Docker
B) To monitor container performance
C) To host containerized applications
D) To optimize Docker image builds
22.) What is the primary purpose of Docker volumes?
A) To manage network configurations
B) To provide persistent storage for containers
C) To monitor container performance
D) To share images between containers
23.) What does the -d option in the docker run command do?
A) Runs the container in interactive mode
B) Stops the container after execution
C) Runs the container in detached mode
D) Deletes the container after it stops
24.) What is the default base image for most Docker images?
A) CentOS
B) Ubuntu
C) Alpine
D) Debian
25.) What is the command to stop all running containers?
A) docker ps -q
B) docker stop $(docker ps -q)
C) docker rm $(docker ps -a)
D) docker pause $(docker ps)
Related