Last active
November 2, 2020 07:43
-
-
Save mgpradeepa/5c15b2b6f71abc5745b2311b4a57d013 to your computer and use it in GitHub Desktop.
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
The docker system in which docker is installed or running can run into dangling state. | |
To check whats the disk consumption due to Docker | |
docker system df | |
Primarily the issues comes up is with low disk space. Of course this is re-claimable. | |
Cause for Low disk space are | |
(a) docker images created during build could be in dangling state | |
or would have been stored or persisted for a longer time. | |
check >>> docker images | |
>>> docker images prune // resolves by removing the images which are in dangling state. | |
(b) docker containers created during build for certain deployments could be in dangling state | |
or would have been stored or persisted for a longer time. | |
check >>> docker containers | |
>>> docker containers prune // resolves by removing the containers which are in dangling state/ or no more used. | |
(c) docker volumes created during build for storing some data which would have been in needed for all further | |
deployments could be causing as it can grow. | |
check >>> docker volume | |
>>> docker volume prune // resolves by removing the volumes which are in dangling state/ or no more used. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment