Last active
December 5, 2019 09:56
-
-
Save gianpaolof/01b3dcb72491d0c8693311de48fe5653 to your computer and use it in GitHub Desktop.
If someone finds /var/lib/docker becoming huge, check the docker logs with this command:
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 inspect --format '{{.LogPath}}' $(docker ps --format '{{.ID}}') | xargs du -hs | sort -n (I have 5Gb of logs in that directory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment