Created
May 7, 2021 07:37
-
-
Save ntarocco/3a9a0b2bed6442c4fdd0c223998ceec0 to your computer and use it in GitHub Desktop.
Docker stop/prune
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) | |
echo y | docker container prune # Remove all stopped containers | |
echo y | docker volume prune # Remove all unused volumes | |
# docker image prune # Remove unused images | |
echo y | docker system prune # don't really know... | |
docker ps -a |
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) | |
docker ps -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment