Last active
July 30, 2020 06:16
-
-
Save kbendick/cc343638002bee31dfc1bfbaffa55e27 to your computer and use it in GitHub Desktop.
Stop and remove all docker containers
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
# Ensure that the docker engine is running | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# Clean up all images | |
docker rm $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment