4 lines
231 B
Bash
Executable file
4 lines
231 B
Bash
Executable file
#!/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
|