View logs and debug a docker service

 

To debug why a container within a docker stack didn’t start, these commands will help


#list all processes

docker service ls

#note the id of your problematic service

docker service ps <problematic-service-id-from-above>

#lists all containers of this service. note the id of the most recent container

docker inspect <container-id-from-above-step>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

62,357 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>