Created
October 7, 2016 18:39
-
-
Save tonygaetani/694be7cd94e39f69b14f8ada07e8fa3d to your computer and use it in GitHub Desktop.
docker clean all
This file contains 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
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# thank you https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment