nerdexam
CompTIACompTIA

XK0-005 · Question #1584

XK0-005 Question #1584: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1584. The question stem and answer options stay visible for context.

Scripting, Containers, and Automation

Question

A developer needs to launch an Nginx image container, name it Web00l, and expose port 8080 externally while mapping to port 80 inside the container. Which of the following commands will accomplish this task?

Options

  • Adocker exec -it -p 8080:80 --name Web001 nginx
  • Bdocker load -it -p 8080:80 --name Web001 nginx
  • Cdocker run -it -p 8080:80 --name Web001 nginx
  • Ddocker pull -it -p 8080:80 --name Web001 nginx

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Docker#Container management#Port mapping#docker run
Full XK0-005 PracticeBrowse All XK0-005 Questions