summaryrefslogtreecommitdiffstats
path: root/remove-images.sh
diff options
context:
space:
mode:
Diffstat (limited to 'remove-images.sh')
-rwxr-xr-xremove-images.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/remove-images.sh b/remove-images.sh
new file mode 100755
index 0000000..66abe3f
--- /dev/null
+++ b/remove-images.sh
@@ -0,0 +1,20 @@
+echo "Removing data containers and images !!!"
+docker rm $(docker ps -a -q --filter ancestor=data)
+docker rmi -f $(docker images -a | grep "data" | awk '{print $3}')
+
+echo "Removing controller containers and images !!!"
+docker rm $(docker ps -a -q --filter ancestor=controller)
+docker rmi -f $(docker images -a | grep "controller" | awk '{print $3}')
+
+echo "Removing api containers and images !!!"
+docker rm $(docker ps -a -q --filter ancestor=api)
+docker rmi -f $(docker images -a | grep "api" | awk '{print $3}')
+
+echo "Removing solver containers and images !!!"
+docker rm $(docker ps -a -q --filter ancestor=solver)
+docker rmi -f $(docker images -a | grep "solver" | awk '{print $3}')
+
+echo "Removing reservation containers and images !!!"
+docker rm $(docker ps -a -q --filter ancestor=reservation)
+docker rmi -f $(docker images -a | grep "reservation" | awk '{print $3}')
+