Created
November 20, 2022 22:33
-
-
Save bluetoothfx/ac3ca89ce9ec5e03eabb0d7da000a9d7 to your computer and use it in GitHub Desktop.
Revisions
-
bluetoothfx created this gist
Nov 20, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Check docker logs: sudo du -h $(docker inspect --format='{{.LogPath}}' $(docker ps -qa)) Clear docker logs: sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log" or sudo sh -c "truncate -s 0 /var/snap/docker/common/var-lib-docker/containers/*/*-json.log" (worked for snap)