Skip to content

Instantly share code, notes, and snippets.

Created Aug 2, 2018
What would you like to do?
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment