Last active
August 25, 2017 09:40
-
-
Save akornatskyy/29c5c5cbdc83b8aba9fd54abb7404c24 to your computer and use it in GitHub Desktop.
Docker: How to remove all docker images
This file contains hidden or 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/sh | |
| docker rmi $(docker images -a -q) | |
| docker system prune -a -f | |
| sudo /etc/init.d/docker stop | |
| sudo rm -rf /var/lib/docker | |
| sudo /etc/init.d/docker start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment