From 7b3b27e440b076f7a599555eaf963e719caab080 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 28 Nov 2015 21:04:24 +0100 Subject: start reshape of mysql container --- docker-clean.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 docker-clean.sh (limited to 'docker-clean.sh') diff --git a/docker-clean.sh b/docker-clean.sh new file mode 100755 index 0000000..e507591 --- /dev/null +++ b/docker-clean.sh @@ -0,0 +1,4 @@ +#!/bin/bash +docker rm -v $(docker ps -a -q -f status=exited) +docker rmi $(docker images -f "dangling=true" -q) +docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes \ No newline at end of file -- cgit v1.2.3