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