Docker MCQs with answers Page - 4

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 push an image to Docker Hub?

  • (A) docker push
  • (B) docker upload
  • (C) docker send
  • (D) docker publish

R

Rakesh Kumar • 28.44K Points
Instructor II

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

  • (A) To define build-time variables
  • (B) To set environment variables
  • (C) To specify the working directory
  • (D) To copy files into the container

P

Praveen Singh • 36.81K Points
Coach

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

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

P

Praveen Singh • 36.81K Points
Coach

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

  • (A) To check the health of the container
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container

V

Vinay • 28.75K Points
Instructor II

Q. Which command is used to pause a running Docker container?

  • (A) docker pause
  • (B) docker stop
  • (C) docker halt
  • (D) docker freeze

S

Shiva Ram • 30.44K Points
Instructor I

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

  • (A) To add metadata to the image
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container

R

Ranjeet • 34.60K Points
Instructor I

Q. Which command is used to unpause a paused Docker container?

  • (A) docker unpause
  • (B) docker resume
  • (C) docker start
  • (D) docker continue

V

Vikash Gupta • 33.56K Points
Instructor I

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

  • (A) To trigger instructions when the image is used as a base for another image
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container

R

Ranjeet • 34.60K Points
Instructor I

Q. Which command is used to view the history of a Docker image?

  • (A) docker history
  • (B) docker inspect
  • (C) docker logs
  • (D) docker info

V

Vijay Sangwan • 28.62K Points
Instructor II

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

  • (A) To specify the signal to stop the container
  • (B) To define the base image
  • (C) To specify the working directory
  • (D) To copy files into the container

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.