mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-03 17:50:28 +01:00
Implemented skipping of bootstrap volumes. @See https://chatgpt.com/share/fe1e26c1-4b34-4357-a125-ed47035f9e1f
This commit is contained in:
parent
d71af4a4fe
commit
62d3dfa028
@ -22,6 +22,12 @@ for volume in $anonymous_volumes; do
|
||||
continue
|
||||
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++))
|
||||
|
||||
container_ids=$(docker ps -aq --filter volume=$volume)
|
||||
|
Loading…
Reference in New Issue
Block a user