ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 139 - XK0-005 discussion

Report
Export

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
Answers
A.
docker builder -f -name web-01 httpd
B.
docker load --name web-01 httpd
Answers
B.
docker load --name web-01 httpd
C.
docker ps -a --name web-01 httpd
Answers
C.
docker ps -a --name web-01 httpd
D.
docker run -d --name web-01 httpd
Answers
D.
docker run -d --name web-01 httpd
Suggested answer: D

Explanation:

The docker run -d --name web-01 httpd command will launch a container named web-01 in background mode. This command will create and start a new container from the httpd image, assign it the name web-01, and run it in detached mode (-d), which means the container will run in the background without attaching to the current terminal. The docker builder -f --name web-01 httpd command is invalid, as builder is not a valid docker command, and -f and --name are not valid options for docker build. The docker load --name web-01 httpd command is invalid, as load does not accept a --name option, and httpd is not a valid file name for load. The docker ps -a --name web-01 httpd command is invalid, as ps does not accept a --name option, and httpd is not a valid filter for ps. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 16: Virtualization and Cloud Technologies, page 499.

asked 02/10/2024
Ruben Campoy
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first