CompTIA

XK0-006 practice question 7

CompTIA Linux+ · free question 7 of 20

Question

A Linux user needs to download the latest Debian image from a Docker repository. Which of the following commands makes this task possible?
  • A. docker image init debian
  • B. docker image pull debian Correct
  • C. docker image import debian
  • D. docker image save debian

Explanation

docker image pull downloads an image from a registry, and with no tag it fetches the latest tag. docker image import creates an image from a tarball, docker image save writes a local image to a tar archive, and docker image init is not a Docker command.

Practice the whole free set

Answer all 20 free XK0-006 questions with instant feedback, or unlock all 154 questions with Learn and Exam modes.