Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker clear container logs

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