title: How do I specify a node for a docker stack container?
body: <p>I have a docker-cloud.yml file that successfully starts a swarm, but it (apparently randomly) selects the nodes that each container runs on. I have associated containers that I want to run in the same node, but I don't see a way to do that.</p>
  
  <p>I don't see the term in Docker, but I otherwise might refer to this as "affinity". I want containers to have assigned node affinity.</p>
  
  <p>I see the <code>add-label</code> command and I see one version of the documentation that indicates a <code>tags:</code> field in the configuration file, but my version of docker doesn't allow that field.</p>
  
  <p>I'm using docker version 17.04.0-ce on Ubuntu 16.04.2 LTS (xenial)</p>