This commit is contained in:
Kevin Veen-Birkenbach 2024-09-05 08:38:03 +02:00
parent d71af4a4fe
commit 62d3dfa028

View File

@ -22,6 +22,12 @@ for volume in $anonymous_volumes; do
continue continue
fi fi
container_mount_path=$(docker ps -q | xargs -I {} docker inspect {} --format="{{range .Mounts}}{{if eq .Name \"$volume\"}}{{.Destination}}{{end}}{{end}}" | tr -d '\n' | xargs)
if [ "$container_mount_path" == "/var/www/bootstrap" ]; then
echo "Volume $volume is a bootstrap volume and will be skipped."
continue
fi
((status++)) ((status++))
container_ids=$(docker ps -aq --filter volume=$volume) container_ids=$(docker ps -aq --filter volume=$volume)