These are chat archives for docker/swarm

Mar 2018
Mar 05 2018 01:20
hey guys! is it possible to make a service replicas spread the same tasks to the same hosts allways?
really dunno if that is the solution for my problem.. just testing saving data in volumes(really dont wanna use NFS or any other shared FS) but i need like replica1 as serviceA_1 always be assigned to node1
serviceA_2 to node 2
serviceB_1 to node 1
my initial thought was to use something like templates.. constraint: node.hostname == host{{index}} or something similar