Added script to add registry to all services

This commit is contained in:
Kasra Bigdeli
2020-11-27 08:04:09 -05:00
parent 24734771c6
commit 3e9d5c2184

View File

@@ -0,0 +1,15 @@
#!/bin/bash
####################################################################
##### Updates all services with registry token
####################################################################
# curl -sSL https://raw.githubusercontent.com/caprover/caprover/master/dev-scripts/add-registry-to-all-services.sh | bash -s --
all_services=$(docker service ls --format {{.Name}})
for srv in $all_services
do
echo "Service: $srv"
docker service update --with-registry-auth $srv --force -d
done