title: Volume is not shared between nodes of Docker Swarm
body: <p>I am having problem sharing a folder between Docker containers running on different nodes of Docker Swarm. My swarm consist of one manager and two workers.</p>
  
  <p>I am using this compose file to deploy applications:</p>
  
  <pre><code>version: '3'
  
  services:
  
    redis:
      image:
        redis:latest
      networks:
        - default
      ports:
        - 6379:6379
      volumes:
        - test-volume:/test
      deploy:
        replicas: 1
        update_config:
          parallelism: 2
          delay: 10s
        restart_policy:
          condition: on-failure
        placement:
          constraints: [node.role == manager]
  
    logstash:
      image: docker.elastic.co/logstash/logstash:5.2.2
      networks:
        - default
      volumes:
        - test-volume:/test
      deploy:
        placement:
          constraints: [node.role == worker]
  
  networks:
    default:
      external: false
  
  volumes:
    test-volume:
  </code></pre>
  
  <p>I can confirm that the folder is successfully mounted in both containers with use of <code>docker exec _id_ ls /test</code>. But when I add a file into this folder  with <code>docker exec _id_ touch /test/file</code> second container does not see created file.</p>
  
  <p>How to configure the swarm so the files are visible in both containers?</p>