ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 325 - XK0-005 discussion

Report
Export

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

A.

docker-compose inspect WEB

Answers
A.

docker-compose inspect WEB

B.

docker logs WEB

Answers
B.

docker logs WEB

C.

docker run --name WEB --volume /dev/stdout:/var/log/nginx/error.log

Answers
C.

docker run --name WEB --volume /dev/stdout:/var/log/nginx/error.log

D.

docker ps WEB -f

Answers
D.

docker ps WEB -f

Suggested answer: B

Explanation:

The docker logs command retrieves logs, including errors, for a running container. By using docker logs WEB, the administrator can check the error output generated by the web server container and debug any issues related to application performance or errors.

asked 09/10/2024
Steven Henkel
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first