Add removal of images (spotify-gc does not do that anymore)
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1efe7fa3ca
commit
5983071082
1 changed files with 1 additions and 0 deletions
|
@ -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 '/<none>/{print $3}'; docker images | awk '!/<none>|REPOSITORY/{ print $1":"$2 }'; } | xargs docker rmi
|
||||
|
|
Loading…
Reference in a new issue