Created
December 13, 2021 13:23
-
-
Save Merwanski/799a98d5e85f19a0025622755535f0e0 to your computer and use it in GitHub Desktop.
clear pc from docker images / containers
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
# REMOVE the containers no longer running | |
docker rm $(docker ps -a -q) | |
# REMOVE the images without any attached container to them | |
docker rmi $(docker images -q -f dangling=true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment