CompTIA Linux+ (XK0-005) — Question 148

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

Answer options

Correct answer: D

Explanation

The correct command is D, as 'docker run -d' is specifically used to start a container in detached mode (background). Options A and B are incorrect because they are not valid commands for launching a container, and option C is used for listing containers, not for starting one.