title: Docker swarm run tasks only in workers
body: <p>Say that we are working in swarm mode and we have three nodes: </p>
  
  <ul>
  <li>manager1</li>
  <li>worker1</li>
  <li>worker2</li>
  </ul>
  
  <p>Is it possible to create a service and specify that the tasks only has to run in the workers (worker1 and worker2) and not in the managers (manager1)</p>
  
  <p>I am running the following command to create the service:</p>
  
  <pre><code>docker-machine ssh manager1 "docker service create --network dognet --name dog-db redis"
  </code></pre>
  
  <p>and when I ps the service:</p>
  
  <pre><code>docker-machine ssh manager1 "docker service ps dog-db"
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>ID                         NAME      IMAGE  NODE      DESIRED STATE  CURRENT STATE            ERROR
  3kvfpbhl6fj0qwtglc5k7sbkw  dog-db.1  redis  manager1  Running        Preparing 4 seconds ago  
  </code></pre>