Created
June 29, 2021 11:33
-
-
Save martinratinaud/7c0d64215be83d07f531ee70650955cb to your computer and use it in GitHub Desktop.
Remove all docker logs at once
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
sudo sh -c 'truncate -s 0 $(docker system info | grep "Docker Root Dir" | cut -d ":" -f2 | cut -d " " -f2-)/containers/*/*-json.log'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment