From 660778cb888ece1ee6f3b994c8d382f5eb94c311 Mon Sep 17 00:00:00 2001 From: Nicholas Mucks Date: Sun, 14 Jul 2024 12:39:56 -0700 Subject: [PATCH] Update automation.sh --- automation.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/automation.sh b/automation.sh index b9ff2bdd3..b4e2745c2 100644 --- a/automation.sh +++ b/automation.sh @@ -2,8 +2,14 @@ echo "####################################################" echo "Stop and remove all running containers..." echo "docker stop $(docker ps -a -q)" echo "docker system prune -af" + docker stop $(docker ps -a -q) -docker system prune -af + +# remove the stopped docker containers +docker rm -v -f $(docker ps -qa) + +# uncomment this to remove the images too +# docker system prune -af echo "####################################################" echo "Build and run container..."