From 5983071082780fd37dc60aea9a3c52581af6026d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 8 Jan 2018 23:52:50 +0100 Subject: [PATCH] Add removal of images (spotify-gc does not do that anymore) Signed-off-by: Knut Ahlers --- bin/docker-clean | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/docker-clean b/bin/docker-clean index 7093f9d..55376b9 100755 --- a/bin/docker-clean +++ b/bin/docker-clean @@ -1,3 +1,4 @@ #!/bin/bash docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc +{ docker images | awk '//{print $3}'; docker images | awk '!/|REPOSITORY/{ print $1":"$2 }'; } | xargs docker rmi