Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. ip -all netns delete
  2. ip link |grep LINK|awk '{print $2}'|sed s/\@.\*//g > /tmp/links.txt
  3.  
  4. while read line
  5. do
  6. echo "Deleting link $line"
  7. ip link delete $line
  8. done < /tmp/links.txt
  9.  
  10. runsc list 2>/dev/null|grep ht_|awk '{print $1}' > /tmp/containers.txt
  11.  
  12. while read line
  13. do
  14. echo "Deleting container $line"
  15. runsc delete --force $line
  16. done < /tmp/containers.txt
Add Comment
Please, Sign In to add comment