Created
August 23, 2018 07:55
-
-
Save chocobn69/6f327f9720797d928195b8728bfbec88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
for service in $(docker service ls|awk -v N=2 '{print $N}') | |
do | |
echo "Rebalance $service" | |
docker service update --force $service | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment