diff options
Diffstat (limited to 'docker-clean.sh')
-rwxr-xr-x | docker-clean.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |