Filter out USER and SYSTEM volumes during cleanup in entrypoint script
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
gyurix
2025-05-26 13:17:32 +02:00
parent 2b91706d86
commit 8eb3d1eef1

View File

@@ -223,7 +223,7 @@ remove_additionals() {
debug "$service_exec service-$NAME.json stop force dns-remove" debug "$service_exec service-$NAME.json stop force dns-remove"
$service_exec service-$NAME.json stop force dns-remove $service_exec service-$NAME.json stop force dns-remove
for VOLUME in $(echo $VOLUMES); do for VOLUME in $(echo $VOLUMES | grep -vE 'USER|SYSTEM'); do
if [ "$(echo $VOLUME | cut -d '/' -f1)" ]; then if [ "$(echo $VOLUME | cut -d '/' -f1)" ]; then
docker volume rm $VOLUME docker volume rm $VOLUME
debug "deleted volume: $VOLUME" debug "deleted volume: $VOLUME"