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>


Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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