Created
June 6, 2023 06:20
-
-
Save sarangnx/81c4fcd82d01226e14ae4ad798eced11 to your computer and use it in GitHub Desktop.
Revisions
-
sarangnx created this gist
Jun 6, 2023 .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 @@ #!/bin/bash container_ids=$(docker ps -q) for container_id in $container_ids; do sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' "$container_id") done