@ -73,9 +73,9 @@ case ${ACTION} in
do_install_detail
;;
"rm")
APP_NAME="nodered"
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${APP_NAME}" --format '{{.ID}}')
[ -z "$IMAGE_NAME" ] && IMAGE_NAME="nodered/node-red:latest"
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${IMAGE_NAME}" --format '{{.ID}}')
echo "Stopping and removing containers..."
for ID in $CONTAINER_IDS; do
docker stop $ID