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 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. References:
1: docker service inspect | Docker Docs
2: 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