title: docker stack deploy does not update config
body: <p>Trying to set up a zero-downtime deployment using docker stack deploy, docker swarm one node localhost environment.</p>
  <p>After building image <code>demo:latest</code>, the first deployment using the command <code>docker stack deploy --compose-file docker-compose.yml demo</code> able to see 4 replicas running and can access nginx default home page on port 8080 on my local machine. Now updating <code>index.html</code>, building image with the same name and tag running docker stack deplopy command causing below error and changes are not reflected.</p>
  <p>Deleting the deployment and recreating will work, but I am trying to see how can updates rolled in without downtime. Please help here.</p>
  <p><strong>Error</strong></p>
  <pre><code>Updating service demo_demo (id: wh5jcgirsdw27k0v1u5wla0x8)
  image demo:latest could not be accessed on a registry to record
  its digest. Each node will access demo:latest independently,
  possibly leading to different nodes running different
  versions of the image.
  </code></pre>
  <p><strong>Dockerfile</strong></p>
  <pre><code>FROM nginx:1.19-alpine
  ADD index.html /usr/share/nginx/html/
  </code></pre>
  <p><strong>docker-compose.yml</strong></p>
  <pre><code>version: &quot;3.7&quot;
  services:
    demo:
      image: demo:latest
      ports:
        - &quot;8080:80&quot;
      deploy:
        replicas: 4
        update_config:
          parallelism: 2
          order: start-first
          failure_action: rollback
          delay: 10s
        rollback_config:
          parallelism: 0
          order: stop-first
  </code></pre>