Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo docker kill $(sudo docker ps -q)
- #remove all containers
- sudo docker rm --force $(sudo docker ps -a -q)
- #remove all docker images
- sudo docker rmi --force $(sudo docker images -q)
- #remove all unused volumes
- sudo docker volume prune --force
- #k8s
- sudo service docker stop
- sudo rm -rf /etc/cni
- sudo rm -rf /etc/kubernetes
- sudo rm -rf /opt/cni
- sudo rm -rf /var/lib/calico/
- sudo rm -rf /var/lib/cni/
- sudo rm -rf /var/lib/etcd/
- sudo rm -rf /var/lib/rancher/*
- sudo rm -rf /var/run/calico
- sudo service docker start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement