ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 97 - 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 'docker inspect' command returns low-level information on Docker objects, such as containers, images, networks, etc1It does not show the list of historical tasks for a service.To view the list of tasks for a service, you need to use the 'docker service ps' command2. For example, to see the tasks for the 'http' service, you would run 'docker service ps http'.This would show the ID, name, image, node, desired state, current state, and error of each task2.Reference:Docker inspect | Docker Docs,Docker service ps | Docker Docs

asked 08/11/2024
vladimir tolkunov
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first