Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.