Skip to content

Instantly share code, notes, and snippets.

@zellio
Created January 18, 2017 15:03
Show Gist options
  • Save zellio/c62a58e99923612e6b09d957052cb78b to your computer and use it in GitHub Desktop.
Save zellio/c62a58e99923612e6b09d957052cb78b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
docker ps --all | awk '{print $1}' | xargs docker rm
docker images | awk '{print $3}' | xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment