pullAll.sh
· 176 B · Bash
Raw
#!/bin/bash
for f in ./*/docker-compose.yml; do
[ -e "$f" ] || continue
cd "$(dirname "$f")"
docker compose pull
docker compose down
docker compose up -d
cd ..
done
1 | #!/bin/bash |
2 | for f in ./*/docker-compose.yml; do |
3 | [ -e "$f" ] || continue |
4 | cd "$(dirname "$f")" |
5 | docker compose pull |
6 | docker compose down |
7 | docker compose up -d |
8 | cd .. |
9 | done |