1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/config/updateall/scripts/50-docker

16 lines
208 B
Text
Raw Normal View History

2024-02-02 18:08:33 +01:00
#!/bin/sh -x
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
cd /opt/docker || exit
for i in *; do (set -e
cd "$i"
docker-compose pull
docker-compose up -d
) & done
docker image prune -f
wait