diff --git a/roles/health-docker-volumes/files/health-docker-volumes.sh b/roles/health-docker-volumes/files/health-docker-volumes.sh index 8503bc1f..84b944ae 100644 --- a/roles/health-docker-volumes/files/health-docker-volumes.sh +++ b/roles/health-docker-volumes/files/health-docker-volumes.sh @@ -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)