Advertisement
Guest User

Untitled

a guest
Jun 27th, 2018
1,362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. sudo docker kill $(sudo docker ps -q)
  2.  
  3. #remove all containers
  4. sudo docker rm --force $(sudo docker ps -a -q)
  5.  
  6. #remove all docker images
  7. sudo docker rmi --force $(sudo docker images -q)
  8.  
  9. #remove all unused volumes
  10. sudo docker volume prune --force
  11.  
  12. #k8s
  13. sudo service docker stop
  14. sudo rm -rf /etc/cni
  15. sudo rm -rf /etc/kubernetes
  16. sudo rm -rf /opt/cni
  17. sudo rm -rf /var/lib/calico/
  18. sudo rm -rf /var/lib/cni/
  19. sudo rm -rf /var/lib/etcd/
  20. sudo rm -rf /var/lib/rancher/*
  21. sudo rm -rf /var/run/calico
  22. sudo service docker start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement