Created
January 22, 2026 16:26
-
-
Save SmugZombie/50531253d0d47162c902455f38d7b219 to your computer and use it in GitHub Desktop.
Truncate Docker Logs
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
| du -sh /var/lib/docker/containers/* | |
| sudo find /var/lib/docker/containers/ -name "*-json.log" -exec truncate -s 0 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment