Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to clear docker-compose logs

truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #logs
ADD COMMENT
Topic
Name
2+4 =