Filter out USER and SYSTEM volumes during cleanup in entrypoint script
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user