DCA · Question #141
DCA Question #141: Real Exam Question with Answer & Explanation
The correct answer is A: Yes. The docker service inspect http command provides comprehensive details about a Docker service, including a list of its associated tasks, which can encompass historical task information.
Question
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'
Options
- AYes
- BNo
Explanation
The docker service inspect http command provides comprehensive details about a Docker service, including a list of its associated tasks, which can encompass historical task information.
Common mistakes.
- B. The
docker service inspectcommand is specifically designed to provide detailed information about a service's state and history, including its tasks.
Concept tested. Docker service inspection and task history
Reference. https://docs.docker.com/engine/reference/commandline/service_inspect/
Topics
Community Discussion
No community discussion yet for this question.