Cyber Monday 2024! 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
5 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
3 months ago
You're welcome! Hopefully that helps you troubleshoot the issues with your web server.
upvoted 0 times
...
Minna
3 months ago
That makes sense, thanks for the tip!
upvoted 0 times
...
Sabina
3 months ago
B) docker logs WEB
upvoted 0 times
...
Alesia
4 months ago
C) docker run ---name WEB ---volume/dev/stdout:/var/log/nginx/error.log
upvoted 0 times
...
Flo
4 months ago
B) docker logs WEB
upvoted 0 times
...
Earleen
4 months ago
A) docker-compose inspect WEB
upvoted 0 times
...
...
Aide
5 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
5 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
5 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
4 months ago
Yeah, docker logs is the most straightforward option for this situation.
upvoted 0 times
...
Titus
4 months ago
I agree, docker logs is the way to go for viewing container logs.
upvoted 0 times
...
...
Ming
5 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
5 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
4 months ago
Actually, option C is the most comprehensive solution to generate the errors on the container.
upvoted 0 times
...
Lisandra
4 months ago
I disagree, option D is the correct answer.
upvoted 0 times
...
Lindsay
5 months ago
No way, option B is the way to go.
upvoted 0 times
...
Ardella
5 months ago
I think option A is the best choice.
upvoted 0 times
...
...
Galen
5 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
6 months ago
Option B is the way to go! It's the simplest way to get those error logs.
upvoted 0 times
Keneth
5 months ago
I think I'll go with option B as well, thanks for the suggestion!
upvoted 0 times
...
Magdalene
5 months ago
I agree, option B is the easiest way to check the error logs.
upvoted 0 times
...
...
Alana
6 months ago
I agree with Luz, docker logs WEB should show the error output.
upvoted 0 times
...
Luz
6 months ago
I think the administrator should use option B) docker logs WEB to generate the errors.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77