Skip to content

Instantly share code, notes, and snippets.

@mkjsix
Last active June 1, 2017 10:17
Show Gist options
  • Save mkjsix/6bb518691aaae17d04c2ed41065986f0 to your computer and use it in GitHub Desktop.
Save mkjsix/6bb518691aaae17d04c2ed41065986f0 to your computer and use it in GitHub Desktop.
Delete all Docker images and containers
# Delete every non-running Docker container
docker rm -f $(docker ps -a -q)
# Delete every Docker image for non-running containers
docker rmi -f $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment