swarm

# REBALANCE REPLICA BW NODES
docker service update --force SERVICENAME

# CREATE SERVICE IN SWARM
docker service create --name my_web --replicas 1 nginx

# RESTART CONTAINER
docker service scale myserv=0
docker service scale myserv=1

# check traffic on swarm worker
tcpdump -nn -i eth0 not port 22 and not port 7946 and not port 4789 and not port 2377

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>