title: docker swarm list dependencies of a service
body: <p>Let's say we have the following stack file:</p>
  
  <pre><code>version: "3"
  services:
    ubuntu:
      image: ubuntu
      deploy:
        replicas: 2
        restart_policy:
          condition: on-failure
        resources:
          limits:
            cpus: "0.1"
            memory: 50M
      entrypoint:
        - tail
        - -f
        - /dev/null
      logging:
        driver: "json-file"
      ports:
        - "80:80"
      networks:
        - webnet
    web:
      image: httpd
      ports:
        - "8080:8080"
      hostname: "apache"
      volumes:
        - "/var/run/docker.sock:/var/run/docker.sock"
      deploy:
        placement:
          constraints: [node.role == manager]
        resources:
          limits:
            memory: 32M
          reservations:
            memory: 16M
      depends_on:
        - "ubuntu"
      networks:
        - webnet
  networks:
    webnet:
  </code></pre>
  
  <p>When I run <code>docker service inspect mystack_web</code> the output generated does not show any reference to the <em>depends_on</em> entry.</p>
  
  <p>Is that okay? and how can I print the dependencies of a given docker service?</p>