Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
Created February 2, 2017 13:13
Show Gist options
  • Select an option

  • Save paulbrodner/f2ebd9f945dcd96f79a3a635544252ff to your computer and use it in GitHub Desktop.

Select an option

Save paulbrodner/f2ebd9f945dcd96f79a3a635544252ff to your computer and use it in GitHub Desktop.
Remove all images and containers
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment