title: docker swarm how to find out why service can't start
body: <p>I often have problems because a service that I deploy on docker swarm with multiple nodes won't start and there are not logs generated that I can look at with <code>docker service logs {serviceName}</code></p>
  
  <p>There are many possible reasons for a service not to start such as </p>
  
  <ul>
  <li>Can't download image from registry</li>
  <li>Constraints that can't be fulfilled</li>
  </ul>
  
  <p>I have trouble finding out why a container won't start. I found the command <code>docker service ps {serviceName}</code> which List the tasks of one or more services and a short error message (if there was an error). However when I try to inspect the task with <code>docker service logs {taskId}</code> (which should show logs of a task) I get <code>Error response from daemon: task 3lkgo8t2sn7k not found</code>.</p>
  
  <p>Can anyone help me get a full error message why a service won't start?</p>