Docker MCQs with answers Page - 5

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

S

Shiva Ram • 30.44K Points
Instructor I

Q. Which command is used to create a Docker network?

  • (A) docker network create
  • (B) docker create network
  • (C) docker net create
  • (D) docker add network

P

Priyanka Tomar • 35.28K Points
Coach

Q. What is the purpose of the SHELL instruction in a Dockerfile?

  • (A) To specify the default shell for the container
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container

V

Vikash Gupta • 33.56K Points
Instructor I

Q. Which command is used to list Docker networks?

  • (A) docker network ls
  • (B) docker list networks
  • (C) docker net ls
  • (D) docker show networks

G

Gopal Sharma • 38.32K Points
Coach

Q. What is the purpose of the ADD instruction in a Dockerfile?

  • (A) To copy files from the host to the container
  • (B) To copy files between containers
  • (C) To copy files from the container to the host
  • (D) To create a backup of the container

V

Vikash Gupta • 33.56K Points
Instructor I

Q. Which command is used to remove a Docker network?

  • (A) docker network rm
  • (B) docker remove network
  • (C) docker net rm
  • (D) docker delete network

G

Gopal Sharma • 38.32K Points
Coach

Q. What is Docker Compose used for?

  • (A) Building Docker images
  • (B) Managing multi-container applications
  • (C) Monitoring Docker containers
  • (D) Creating container snapshots

G

Gopal Sharma • 38.32K Points
Coach

Q. Which file format does Docker Compose use?

  • (A) JSON
  • (B) YAML
  • (C) XML
  • (D) INI

R

Ranjeet • 34.60K Points
Instructor I

Q. What is the default name of the Docker Compose configuration file?

  • (A) docker-compose.yml
  • (B) compose.json
  • (C) dockerfile.yaml
  • (D) config.compose

A

Admin • 36.96K Points
Coach

Q. Which command is used to start services defined in a Docker Compose file?

  • (A) docker-compose build
  • (B) docker-compose start
  • (C) docker-compose up
  • (D) docker-compose init

S

Shiva Ram • 30.44K Points
Instructor I

Q. How can you run Docker Compose in detached mode?

  • (A) docker-compose run -d
  • (B) docker-compose up -d
  • (C) docker-compose start -d
  • (D) docker-compose detach

Loding content...

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.