ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 121 - DCA discussion

Report
Export

You created a new service named 'http* and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?

Solution. 'docker inspect http'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

The commanddocker inspect httpwill not enable you to view the list of historical tasks for the service.Thedocker inspectcommand returns low-level information on Docker objects, such as containers, images, networks, or volumes1.It does not work on services, which are higher-level objects that define the desired state of a set of tasks2.To view the list of historical tasks for a service, you need to use thedocker service pscommand, which shows the current and previous states of each task, as well as the node, error, and ports3.Reference:

docker inspect | Docker Docs

Services | Docker Docs

docker service ps | Docker Docs

asked 08/11/2024
Maryna Zarytska
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first