Created
June 5, 2023 14:47
-
-
Save voidvn/be0608c96962395e4548cee88a85324a to your computer and use it in GitHub Desktop.
Stop and clear all docker containers and images on the server
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
# check free space | |
df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment