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 ps http’ is not the correct command to view the list of historical tasks for a service in Docker1.The ‘docker ps’ command is used to list containers1.If you want to view the list of historical tasks for a service, you should use the ‘docker service ps’ command2.Thiscommand lists the tasks that are running as part of the specified services and also shows the task history2.Therefore, to view the list of historical tasks for the ‘http’ service, you should use the command 'docker service ps http’2.
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