Created
January 19, 2017 12:35
-
-
Save Ibmurai/a24311bfea1093321c4c7f57a8a758da to your computer and use it in GitHub Desktop.
Full docker cleanup - remove every image and container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop $(docker ps -aq --filter status=running) | |
docker rm $(docker ps -aq) | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment