- replace node1/node2 to the ip address of docker swarm node in the cluster
- make sure docker daemon on node1/node2 is starts with -H 0.0.0.0:2375
- disable iptables/firewall
docker -H tcp://node1:8888 run --rm swarm list consul://node1:8500/swarm
docker -H tcp://node1:8888 run -d --name www -p 80:80 nginx
docker -H tcp://node1:8888 ps