duneci-docker-gc 165 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash
#
# Clean up left-overs from Docker.

set -e
set -u

docker rm $(docker ps -a -q -f status=exited)
docker rmi $(docker images --filter dangling=true -q)