duneci-docker-gc: Cleanup left-overs from Docker.

Docker keeps containers and images around after the container is no
longer in use. These eat up all disk space and need to be cleaned up
from time to time.
parent c2e4f5fc
# 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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment