Let's say that we are working in swarm mode, and we have three nodes:
Is it possible to create a service and indicate that tasks should be performed only for workers (worker1 and worker2), and not for managers (manager1)
To create a service, the following command is executed:
docker-machine ssh manager1 "docker service create
and when I use the service:
docker-machine ssh manager1 "docker service ps dog-db"
I get:
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
3kvfpbhl6fj0qwtglc5k7sbkw dog-db.1 redis manager1 Running Preparing 4 seconds ago
source
share