Question 51 · 300 in bank
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?
Show answer
Answer: D
Explanation
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.
Source: Adapted from community discussion — linux_admin