aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hallisey <rhallise@redhat.com>2014-10-17 12:40:31 +0000
committerRyan Hallisey <rhallise@redhat.com>2014-10-17 17:58:42 +0000
commitd2194febb5829d66b91ac4151f96fac0bc6555c5 (patch)
treeed4172cfe044acb6e594a685b2e14339c8450f68
parentcc2821c12d878517e31de444863c43abba5c421d (diff)
downloadkolla-ansible-d2194febb5829d66b91ac4151f96fac0bc6555c5.tar.gz
kolla-ansible-d2194febb5829d66b91ac4151f96fac0bc6555c5.zip
Docker image and process cleaup tool
When running Docker, you can unknowingly use up a lot of memory. This tool will make it easier to clean up Docker. Change-Id: Icfd780f12b01956093a2933dd484cde1e2d6d5bc
-rwxr-xr-xtools/cleanup-containers3
-rwxr-xr-xtools/cleanup-images3
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
new file mode 100755
index 000000000..7dace3936
--- /dev/null
+++ b/tools/cleanup-containers
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker rm $(docker ps -a -q)
diff --git a/tools/cleanup-images b/tools/cleanup-images
new file mode 100755
index 000000000..4a0443e7d
--- /dev/null
+++ b/tools/cleanup-images
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker rmi $(docker images -a -q)