Docker Interview MCQs
1.
What command is used for stopping a running container?
     docker stop <container_id>
     docker rm <container_id>
     docker kill <container_id>
     docker terminate <container_id>
2.
What command is used for running images as a container?
     docker ps -a
     sudo docker run -i -t alpine /bin/bash
     sudo docker run <container_name>
     All of the above
3.
What is a cloud-hosted service of Docker providing registry capabilities for public
and private content?
     Docker Images
     Docker Alpine
     Docker Hub
     Docker Compose
4.
What is used for converting a pool of Docker hosts into a single, virtual Docker host?
     Docker Images
     Docker Compose
     Docker Hub
     Docker Swarm
5.
What command is used for viewing all running containers?
     docker ps
     docker ps -a
      docker rm
      docker show
6.
What is a template used for describing a build of an image?
      Docker Logs
      Docker Documents
      DockerFile
      Docker Stream
7.
Multiple containers running on a single machine all share the same resources such as
the operating system kernel for instant boot and efficient utilization of RAM. True or
False?
      True
      False
      Doesn't make sense
8.
What is the default IP address of the Docker host?
      0.0.0.0
      127.0.0.1
      172.17. 0.0/16
      192.127.99.1
9.
What command is used to go inside a running container?
      docker sh <container_id>
      docker exec -it <container_id> sh
      docker access <container_id>
      docker ps -a
10.
What command is used for remove all stopped containers, unused networks, build
caches, and dangling images?
      docker system kill -all
docker kill -a
docker system prune
docker system rm -a