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

Docker DCA Exam - Topic 1 Question 125 Discussion

Actual exam question for Docker's DCA exam
Question #: 125
Topic #: 1
[All DCA Questions]

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"

Show Suggested Answer Hide Answer
Suggested Answer: B

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


Contribute your Thoughts:

0/2000 characters
Ronald
17 days ago
I feel like 'docker inspect' gives a lot of info, but I don't think it tracks historical tasks. I might lean towards 'No'.
upvoted 0 times
...
Chanel
22 days ago
I remember a practice question where we had to check service health, and 'docker inspect' was mentioned, but I can't recall if it was specifically for historical tasks.
upvoted 0 times
...
Ernie
27 days ago
I think using 'docker inspect' should show the details of the service, but I'm not sure if it includes historical tasks.
upvoted 0 times
...

Save Cancel