SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Add this command to your ~/.bashrc
  2.  
  3. killdockercontainers() {
  4.   docker container ls --all | grep "Exited" | grep -Eo "^[a-z0-9]{12}" | xargs -I ID docker stop ID | xargs -I ID docker rm ID
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top