Skip to content

Instantly share code, notes, and snippets.

@tonygaetani
Created October 7, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonygaetani/694be7cd94e39f69b14f8ada07e8fa3d to your computer and use it in GitHub Desktop.
Save tonygaetani/694be7cd94e39f69b14f8ada07e8fa3d to your computer and use it in GitHub Desktop.
docker clean all
#!/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