Skip to content

Instantly share code, notes, and snippets.

@gianpaolof
Last active December 5, 2019 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gianpaolof/01b3dcb72491d0c8693311de48fe5653 to your computer and use it in GitHub Desktop.
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:
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