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 ps http'
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. This command 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.
Limited Time Offer
25%
Off
Skye
5 months agoArlette
5 months agoJerry
6 months agoArletta
6 months agoSkye
6 months agoJerry
6 months ago