@ -76,6 +76,7 @@ case ${ACTION} in
docker-compose -f /opt/docker2/compose/nodered-app/docker-compose.yml up -d
;;
"rm")
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${APP_NAME}" --format '{{.ID}}')
echo "Stopping and removing containers..."
for ID in $CONTAINER_IDS; do