Docker Certified Associate (DCA) — Question 11

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 inspect http’

Answer options

Correct answer: B

Explanation

The command ‘docker inspect http’ provides detailed information about the service, but it does not show historical task data. To view the history of tasks, you would typically need to use a different command, such as ‘docker service ps http’.