Docker MCQs with answers Page - 21

Here, you will find a collection of MCQ questions on Docker. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 832.27K Points
Coach

Q. How can you check the health status of a running container?

  • (A) docker health container_name
  • (B) docker inspect container_name
  • (C) docker status container_name
  • (D) docker logs container_name

A

Admin • 832.27K Points
Coach

Q. Which of the following is true about Docker images?

  • (A) Docker images are always ephemeral
  • (B) Docker images are a snapshot of a filesystem with dependencies
  • (C) Docker images are containers in themselves
  • (D) Docker images do not contain any software dependencies

A

Admin • 832.27K Points
Coach

Q. Which Docker command is used to list the available Docker volumes?

  • (A) docker volume ls
  • (B) docker list volumes
  • (C) docker show volumes
  • (D) docker volume show

A

Admin • 832.27K Points
Coach

Q. Which command is used to get the IP address of a running Docker container?

  • (A) docker container ip container_name
  • (B) docker inspect container_name | grep IP
  • (C) docker ip container_name
  • (D) docker network inspect container_name

A

Admin • 832.27K Points
Coach

Q. How can you view the processes running inside a Docker container?

  • (A) docker ps
  • (B) docker process
  • (C) docker exec -it container_name ps
  • (D) docker inspect container_name

A

Admin • 832.27K Points
Coach

Q. Which of the following statements is correct about Docker Swarm?

  • (A) Docker Swarm is used to orchestrate and manage a cluster of Docker nodes
  • (B) Docker Swarm is used to build Docker images
  • (C) Docker Swarm is used for local container storage management
  • (D) Docker Swarm is only available for Windows-based systems

A

Admin • 832.27K Points
Coach

Q. What is the purpose of the 'docker pause' command?

  • (A) To stop a container permanently
  • (B) To pause all processes in a running container
  • (C) To stop a container gracefully
  • (D) To delete a container

A

Admin • 832.27K Points
Coach

Q. Which command is used to rename a Docker container?

  • (A) docker rename
  • (B) docker container rename
  • (C) docker update
  • (D) docker modify

A

Admin • 832.27K Points
Coach

Q. What is the purpose of the 'docker-compose restart' command?

  • (A) To restart all containers defined in a docker-compose.yml file
  • (B) To rebuild Docker images
  • (C) To stop and remove containers
  • (D) To push images to Docker Hub

A

Admin • 832.27K Points
Coach

Q. Which command is used to view the Docker version and system information?

  • (A) docker info
  • (B) docker version
  • (C) docker system info
  • (D) docker inspect

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ