Skip to content

Instantly share code, notes, and snippets.

@steenzout
Last active January 4, 2017 21:45
Show Gist options
  • Save steenzout/a2f70e2573be4e9ef3e6644eff1619b6 to your computer and use it in GitHub Desktop.
Save steenzout/a2f70e2573be4e9ef3e6644eff1619b6 to your computer and use it in GitHub Desktop.
Bash script to wipe out all docker containers, volumes and network.
#!/bin/bash
docker stop $(docker ps -a -q)
docker rm -f $(docker ps -a -q)
docker volume prune -f
docker network prune -f
@steenzout
Copy link
Author

it works for me on:

$ docker --version
Docker version 1.13.0-rc4, build 88862e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment