Docker Community Forums

Share and learn in the Docker community.

Share volumes on different nodes


(Tzlom) #1

I tried to create such stack:

data:
    deployment_strategy: every_node
    image: 'test/data_container:latest'
    tags:
        - node_group
    volumes:
        - /root
runner1:
    image: 'test/runner'
    tags:
        - node_1
        - node_group
    volumes_from:
        - data
runner2:
    image: 'test/runner'
    tags:
        - node_2
        - node_group
    volumes_from:
        - data

But when it deploys, it can deploy only one runner out of two
Second container said "data-1 node is not available after tag filtering"
Looks like it didn’t use information about relations of nodes and containers.
How can I fix this?