Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

truncate docker logs

truncate -s 0 /var/lib/docker/containers/*/*-json.log

--or--

sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"
 
PREVIOUS NEXT
Tagged: #truncate #docker #logs
ADD COMMENT
Topic
Name
7+7 =