Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker clear logs

choose your style
 >  /var/lib/docker/containers/*/*-json.log
 cat /dev/null > /var/lib/docker/containers/*/*-json.log
 echo "" > /var/lib/docker/containers/*/*-json.log
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #clear #logs
ADD COMMENT
Topic
Name
4+8 =