Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 4 Question 35 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 35
Topic #: 4
[All XK0-005 Questions]

An administrator is running a web server in a container named web, but none of the error output is not showing. Which of the following should the administrator use to generate the errors on the container?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Royal
21 hours ago
Wait, there's a container named 'WEB'? Shouldn't it be all lowercase like 'web'? This exam is already tripping me up.
upvoted 0 times
...
Gladys
2 days ago
Ah, the old 'docker ps WEB -f' trick. Classic move, but not quite what we're looking for here.
upvoted 0 times
...
Yoko
14 days ago
Option A? Really? Inspect the container? That's not going to show the errors, my dude.
upvoted 0 times
...
Bobbie
16 days ago
I think option B) docker logs WEB is the best choice because it specifically mentions generating errors.
upvoted 0 times
...
Sheridan
17 days ago
I believe option C) docker run ---name WEB ---volume/dev/stdout:/var/log/nginx/error.log could also work.
upvoted 0 times
...
Naomi
22 days ago
I agree with Marilynn, option B) docker logs WEB seems like the right choice.
upvoted 0 times
...
Arlie
23 days ago
I tried option C, but it didn't work. I think the volume path might be wrong.
upvoted 0 times
Colby
3 days ago
Try option B, it should show the error logs.
upvoted 0 times
...
Luisa
12 days ago
If option B doesn't work, you can also try option A to inspect the container.
upvoted 0 times
...
Carma
13 days ago
Make sure you are using the correct container name when running the command.
upvoted 0 times
...
Corinne
16 days ago
I agree, option B is the correct command to view the logs.
upvoted 0 times
...
Elinore
19 days ago
Try option B, it should display the error logs.
upvoted 0 times
...
...
Marilynn
1 months ago
I think the administrator should use option B) docker logs WEB.
upvoted 0 times
...
Maile
1 months ago
Option B is the correct answer, 'docker logs WEB' will show the error output of the container.
upvoted 0 times
Maynard
21 days ago
B) docker logs WEB
upvoted 0 times
...
Stefania
24 days ago
A) docker-compose inspect WEB
upvoted 0 times
...
...

Save Cancel