Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
# removes all docker containers and volumes
# useful for resetting the state on a hosted socker machine
docker ps -a --format {{.ID}} | xargs docker rm -fv
docker volume prune -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment