Last active
August 13, 2018 12:25
-
-
Save daxgames/a0d06c97b01f4d886cb1cab5a7395a27 to your computer and use it in GitHub Desktop.
kill all docker containers except specific named containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in `docker ps -a |grep -v "jenkins_master\|jenkins_httpd" |awk '{print $1}'`; do docker rm -f $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment