mirror of
https://github.com/caprover/caprover
synced 2025-12-12 06:15:40 +00:00
Added script to add registry to all services
This commit is contained in:
15
dev-scripts/add-registry-to-all-services.sh
Normal file
15
dev-scripts/add-registry-to-all-services.sh
Normal 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
|
||||||
Reference in New Issue
Block a user