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?
The command docker inspect http will not enable you to view the list of historical tasks for the service. The docker inspect command returns low-level information on Docker objects, such as containers, images, networks, or volumes1. It does not work on services, which are higher-level objects that define the desired state of a set of tasks2. To view the list of historical tasks for a service, you need to use the docker service ps command, which shows the current and previous states of each task, as well as the node, error, and ports3. References:
docker inspect | Docker Docs
Services | Docker Docs
docker service ps | Docker Docs
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit