CompTIACompTIA
XK0-005 · Question #10780
XK0-005 Question #10780: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #10780. The question stem and answer options stay visible for context.
Scripting, Containers, and Automation
Question
A Linux administrator needs to deploy an Apache web server in a container. In addition, the container needs to run in the background, and the web server needs to be exposed on port 8080 of the host machine. Which of the following commands will satisfy these requirements?
Options
- Asudo docker run -b -t -p 8080:80 --name mywebserver httpd
- Bsudo docker run -d -t -p 8080:80 --name myweb httpd
- Csudo docker run -d -t -p 80:8080 --name myweb httpd
- Dsudo docker run -b -t -p 80:8080 --name mywebserver httpd
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 Deployment#Port Mapping#Background Processes