Docker – Cleanup Dangling Resources (Bash)

Below is a ready-to-use script. Review and adapt variables to your environment.

#!/usr/bin/env bash
docker system prune -af --volumes
  

← Back to SQL