Skip to content

Instantly share code, notes, and snippets.

@rpherrera
Created April 19, 2017 18:36
Show Gist options
  • Save rpherrera/cdc1dd5b4b505631c697098503ee4bfb to your computer and use it in GitHub Desktop.
Save rpherrera/cdc1dd5b4b505631c697098503ee4bfb to your computer and use it in GitHub Desktop.
remove all killed docker containers
#!/bin/bash
docker ps -a | awk '{print $1}' | grep -v CONTAINER | xargs docker rm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment