nerdexam
CompTIA

XK0-005 · Question #10480

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following…

The correct answer is B. docker image pull java:7. The command that the administrator should run to ensure that both Java 7 and Java 8 are locally available for developers to use when deploying containers is docker image pull java:7. This command will use the docker image pull subcommand to download the java:7 image from Docker…

Scripting, Containers, and Automation

Question

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

Options

  • Adocker image load java:7
  • Bdocker image pull java:7
  • Cdocker image import java:7
  • Ddocker image build java:7

How the community answered

(59 responses)
  • A
    2% (1)
  • B
    92% (54)
  • C
    2% (1)
  • D
    5% (3)

Explanation

The command that the administrator should run to ensure that both Java 7 and Java 8 are locally available for developers to use when deploying containers is docker image pull java:7. This command will use the docker image pull subcommand to download the java:7 image from Docker Hub, which is the default registry for Docker images. The java:7 image contains Java 7 installed on a Debian-based Linux system. The administrator can also specify a different registry by using the syntax registry/repository:tag.

Topics

#Docker#Container images#Image pulling#Container deployment

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice