Docker Certified Associate (DCA) — Question 59
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?
'docker service ps http'
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The command 'docker service ps http' displays the tasks associated with the 'http' service, including their current state, whether they are running or failed. Therefore, it is indeed possible to view the historical task information, making option A correct. Option B is incorrect because it suggests that the command would not provide this information, which it does.