Created
December 31, 2019 04:48
-
-
Save cskonopka/dae372d39bb2a5b990f97ccbdff87b4b to your computer and use it in GitHub Desktop.
Remove all Docker Containers and Images from operating system
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 | |
# remove all Docker containers | |
docker rm $(docker ps -a -q) | |
# remove all Docker images | |
rmi $(docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment