Skip to content

Instantly share code, notes, and snippets.

@wingkwong
Created January 27, 2020 04:17
Show Gist options
  • Save wingkwong/797790e235aaa22c58653f76f0268563 to your computer and use it in GitHub Desktop.
Save wingkwong/797790e235aaa22c58653f76f0268563 to your computer and use it in GitHub Desktop.
A script to remove all docker images and containers
#!/bin/bash
docker rm -vf $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment