exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 144 discussion

Actual exam question from CompTIA's XK0-005
Question #: 144
Topic #: 1
[All XK0-005 Questions]

A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?

  • A. docker builder -f --name web-01 httpd
  • B. docker load --name web-01 httpd
  • C. docker ps -a --name web-01 httpd
  • D. docker run -d --name web-01 httpd
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 5 months ago
D. docker run -d --name web-01 httpd Explanation: docker run command is used to create and run a container based on a specified image. The -d option is used to start the container in the background (detached mode). The --name web-01 option is used to set the name of the container to web-01. httpd is the name of the image that the container will be based on.
upvoted 5 times
...
Eikan
Most Recent 2 weeks, 4 days ago
Selected Answer: D
-d flag: for running the commands in the background.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago