title: docker stack deploy results in "No such image error"
body: <p>I am using docker swarm and would like to deploy a service with <code>docker-compose</code>. My service uses a custom image called <code>myuser/myrepo:mytag</code> that I successfully deploy to Docker-Hub to a private repository.</p>
  
  <p>My docker-compose looks like this:</p>
  
  <pre><code>version: "3.3"
  
  services:
  
    myservice:
      image: myuser/myrepo:mytag
      ports:
        - "8080:8080"
  </code></pre>
  
  <p>Before executing, I successfully pulled the image with: <code>docker pull myuser/myrepo:mytag</code></p>
  
  <p>When I run <code>docker stack deploy -c docker-compose.yml myapp</code> I always receive the error: <code>"No such image: myuser/myrepo:mytag"</code>.</p>
  
  <p>Interestingly, running the same file using only: <code>docker-compose up</code> (i.e. without swarm mode) everything works fine and the service starts up.</p>
  
  <p>I really don't understand why this is failing?
  I've already tried cleaning up docker with <code>docker system prune</code> and then repull my image, no success.</p>