Docker MCQs with answers Page - 31

Dear candidates you will find MCQ questions of Docker here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

V

Vikash Gupta • 33.56K Points
Instructor I

Q. Which of the following commands is used to stop all running Docker containers?

  • (A) docker stop --all
  • (B) docker stop $(docker ps -q)
  • (C) docker kill --all
  • (D) docker terminate containers

V

Vinay • 28.75K Points
Instructor II

Q. Which command can be used to check the status of Docker services in a Swarm mode?

  • (A) docker swarm status
  • (B) docker service list
  • (C) docker node status
  • (D) docker service ps

V

Vinay • 28.75K Points
Instructor II

Q. Which of the following Docker commands is used to scale a service in Docker Swarm?

  • (A) docker service scale service_name=replicas
  • (B) docker scale service_name replicas
  • (C) docker swarm scale service_name replicas
  • (D) docker scale replicas service_name

R

Ram Sharma • 193.86K Points
Coach

Q. Which of the following Docker commands is used to view detailed information about a Docker image?

  • (A) docker inspect image_name
  • (B) docker image show image_name
  • (C) docker images info image_name
  • (D) docker image details image_name

G

Gopal Sharma • 38.32K Points
Coach

Q. What does the 'docker exec -it container_name /bin/sh' command do?

  • (A) Starts a new container in interactive mode
  • (B) Executes a bash shell inside a running container
  • (C) Starts a new shell in the Docker host system
  • (D) Executes the shell command in the background

R

Rakesh Kumar • 28.44K Points
Instructor II

Q. Which Docker command can be used to list all available images on your system?

  • (A) docker list images
  • (B) docker images
  • (C) docker show images
  • (D) docker image list

R

Ranjeet • 34.60K Points
Instructor I

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

  • (A) Docker containers run on a full virtual machine
  • (B) Docker containers share the host OS kernel
  • (C) Docker containers require a separate kernel for each container
  • (D) Docker containers are isolated from the host OS

P

Praveen Singh • 36.81K Points
Coach

Q. Which of the following Docker components is responsible for managing containers and images?

  • (A) Docker engine
  • (B) Docker daemon
  • (C) Docker client
  • (D) Docker manager

P

Priyanka Tomar • 35.28K Points
Coach

Q. What does the 'docker commit' command do?

  • (A) Creates a new container from an existing image
  • (B) Saves changes made in a container to a new image
  • (C) Pushes an image to a remote registry
  • (D) Stops a running container

R

Ranjeet • 34.60K Points
Instructor I

Q. What does the 'docker pull' command do?

  • (A) Pushes a Docker image to the registry
  • (B) Downloads a Docker image from the registry
  • (C) Starts a container from an image
  • (D) Creates a new Docker image

Be the first to start discuss.

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.