Skip to content

Instantly share code, notes, and snippets.

@Razikus
Created August 2, 2018 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Razikus/6201a4293fb9d22df11f91432d219a4a to your computer and use it in GitHub Desktop.
Save Razikus/6201a4293fb9d22df11f91432d219a4a to your computer and use it in GitHub Desktop.
#!/bin/sh
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
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment