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 33 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 33
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:

Pilar
3 months ago
Ah, the age-old question: how do I get my container's error logs? B is the answer, but I hear they're also working on a new feature called 'docker peek' to let you take a quick look inside.
upvoted 0 times
Aracelis
26 days ago
You're welcome! Hopefully that helps you troubleshoot the issues with your web server.
upvoted 0 times
...
Minna
27 days ago
That makes sense, thanks for the tip!
upvoted 0 times
...
Sabina
28 days ago
B) docker logs WEB
upvoted 0 times
...
Alesia
2 months ago
C) docker run ---name WEB ---volume/dev/stdout:/var/log/nginx/error.log
upvoted 0 times
...
Flo
2 months ago
B) docker logs WEB
upvoted 0 times
...
Earleen
2 months ago
A) docker-compose inspect WEB
upvoted 0 times
...
...
Aide
3 months ago
Wait, there's a web server in a container? I thought we were just playing Tetris in there. Option B is the way to go, though, unless you want to flood the container with error messages.
upvoted 0 times
...
Aliza
3 months ago
Option D? Really? That's just for listing containers, not getting logs. Geez, some people need to brush up on their docker commands.
upvoted 0 times
...
Casandra
3 months ago
Seriously, who uses the docker-compose inspect command? That's just for getting container metadata, not logs. B is the clear winner here.
upvoted 0 times
Amie
2 months ago
Yeah, docker logs is the most straightforward option for this situation.
upvoted 0 times
...
Titus
3 months ago
I agree, docker logs is the way to go for viewing container logs.
upvoted 0 times
...
...
Ming
3 months ago
I believe option B) docker logs WEB is the best choice because it specifically shows the logs for the container.
upvoted 0 times
...
Rebbecca
3 months ago
Come on, guys! Option C is the way to get those error logs on the container. It's the most comprehensive solution.
upvoted 0 times
Lavera
2 months ago
Actually, option C is the most comprehensive solution to generate the errors on the container.
upvoted 0 times
...
Lisandra
3 months ago
I disagree, option D is the correct answer.
upvoted 0 times
...
Lindsay
3 months ago
No way, option B is the way to go.
upvoted 0 times
...
Ardella
3 months ago
I think option A is the best choice.
upvoted 0 times
...
...
Galen
3 months ago
I think option C) docker run ---name WEB ---volume/dev/stdout:/var/log/nginx/error.log might also work to generate the errors.
upvoted 0 times
...
Kimbery
4 months ago
Option B is the way to go! It's the simplest way to get those error logs.
upvoted 0 times
Keneth
3 months ago
I think I'll go with option B as well, thanks for the suggestion!
upvoted 0 times
...
Magdalene
3 months ago
I agree, option B is the easiest way to check the error logs.
upvoted 0 times
...
...
Alana
4 months ago
I agree with Luz, docker logs WEB should show the error output.
upvoted 0 times
...
Luz
4 months ago
I think the administrator should use option B) docker logs WEB to generate the errors.
upvoted 0 times
...

Save Cancel