Skip to content

Instantly share code, notes, and snippets.

@jarpy
Last active September 12, 2016 06:55
Show Gist options
  • Save jarpy/816bcadd37e817935f1a42be282f737b to your computer and use it in GitHub Desktop.
Save jarpy/816bcadd37e817935f1a42be282f737b to your computer and use it in GitHub Desktop.
Violently clean up Docker
# Remove all containers, inluding those that are not running.
docker ps --quiet | xargs docker kill
docker ps --all --quiet | xargs docker rm
# Remove all images.
docker images --format '{{.ID}}' | xargs docker rmi --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment