XK0-005 · Question #10480
XK0-005 Question #10480: Real Exam Question with Answer & Explanation
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 H
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
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
Community Discussion
No community discussion yet for this question.