ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 96 - 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 service inspect http'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= The command 'docker service inspect http' will display detailed information on the 'http' service, such as its ID, name, mode, replicas, container spec, networks, ports, etc. However, it will not show the list of historical tasks for the service.To view the list of tasks, you need to use the command 'docker service ps http', which will show the ID, name, image, node, desired state, current state, and error of each task12.Reference:

1: docker service inspect | Docker Docs

2: docker service ps | Docker Docs

asked 08/11/2024
Garwin Liu
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first