I have a docker swarm cluster, it contains 1 master 3 nodes. When we deploy a container through swarm master, e.g with the below command
docker -H tcp://<master_ip>:5001 run -dt --name swarm-test busybox /bin/sh
Take a look at the Swarm filter docs. You can set various constraints on what node Swarm should pick for any given container. For your case try something like:
docker run ... -e constraint:node==node1 ...
This would start the container on