Skip to content

Instantly share code, notes, and snippets.

@RichardHan
Created June 19, 2016 14:29
Show Gist options
  • Save RichardHan/4acd6421ae709f6defc105fcf5f2afa2 to your computer and use it in GitHub Desktop.
Save RichardHan/4acd6421ae709f6defc105fcf5f2afa2 to your computer and use it in GitHub Desktop.
Docker: 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