Skip to content

Instantly share code, notes, and snippets.

@junquera
Created April 12, 2016 09:35
Show Gist options
  • Select an option

  • Save junquera/fea34b7291fce0e1612bbff468ed165a to your computer and use it in GitHub Desktop.

Select an option

Save junquera/fea34b7291fce0e1612bbff468ed165a to your computer and use it in GitHub Desktop.
Deletes all stoped docker containers. From [Raspberry Pi Forums](https://www.raspberrypi.org/forums/viewtopic.php?t=37222&p=310459)
docker rm `docker ps -a | grep Exited | awk '{print $1 }'`
docker rmi `docker images -aq`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment