diff --git a/clean.bat b/clean.bat new file mode 100644 index 0000000..f4a3998 --- /dev/null +++ b/clean.bat @@ -0,0 +1,12 @@ +@echo "Cleaning all related Docker data. This may take a moment..." + +@echo "Trying to stop running containers..." +@FOR /f "tokens=*" %%i IN ('docker ps -a -q --filter "ancestor=boosting"') DO docker stop %%i + +@echo "Removing boosting image..." +docker image rm boosting + +@echo "Removing boosting containers..." +@FOR /f "tokens=*" %%i IN ('docker ps -a -q --filter "ancestor=boosting"') DO docker container rm %%i + +@echo "...done." diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..a79b185 --- /dev/null +++ b/clean.sh @@ -0,0 +1,9 @@ +#! /bin/bash +echo "Cleaning all related Docker data. This may take a moment..." +echo "Trying to stop running containers..." +docker stop "$(docker ps -a -q --filter "ancestor=boosting")" +echo "Removing boosting image..." +docker image rm boosting +echo "Removing boosting containers..." +docker container rm "$(docker ps -a -q --filter "ancestor=boosting")" +echo "...done."