Docker Cleanup
#! /usr/bin/python
import os
print('Pruning dangling containers, images, volumes, networks and clearing build cache...')
os.system('docker system prune --volumes -f')
print('Cleanup complete.')
# To enable daily cleanup, add this to crontab:
# @daily /usr/bin/python /path/to/docker-cleanup.py > /tmp/docker-cleanup.log 2>&1