Skip to content

Instantly share code, notes, and snippets.

TP75

View GitHub Profile
@Karreg
Karreg / docker-cleanup.sh
Last active Jul 4, 2019
Script to cleanup Docker leftovers, related to https://github.com/moby/moby/issues/22207
View docker-cleanup.sh
#!/bin/bash
echo "WARN: This will remove everything from docker: volumes, containers and images. Will you dare? [y/N] "
read choice
if [ \( "$choice" == "y" \) -o \( "$choice" == "Y" \) ]
then
sudo echo "> sudo rights [OK]"
sizea=`sudo du -sh /var/lib/docker/aufs`
You can’t perform that action at this time.