Skip to content

Instantly share code, notes, and snippets.

@Cristuker
Created July 11, 2020 15:29
Show Gist options
  • Save Cristuker/c1689c3642d8c0883bbdedaf7d8fe4ed to your computer and use it in GitHub Desktop.
Save Cristuker/c1689c3642d8c0883bbdedaf7d8fe4ed to your computer and use it in GitHub Desktop.
Script to remove all files and images from your system when you need more space
#!/bin/bash
trap "exit" INT
docker image prune --all -f
docker container prune -f
docker volume prune -f
docker network prune -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment