Docker swarm scaling behaviour on port mapping
问题 I have a swarm composed of three nodes: $ sudo docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS i12s3zxsn4vu1c98bv3i5idr8 node03 Ready Active i2ckxvsju4tmommxim3dbfq7l node02 Ready Active wak4isl46dn7pbo39drrhphju * node01 Ready Active Leader Then I run 1 replica of nginx on that swarm and map his port to 8080: $ sudo docker service create --replicas 1 --publish 8080:80 --name nginx nginx $ sudo docker service ls ID NAME MODE REPLICAS IMAGE PORTS neahnb9mvi1i nginx replicated 1/1