Answers for "docker clear logs"

0

docker clean logs

truncate -s 0 /var/lib/docker/containers/*/*-json.log;
Posted by: Guest on December-01-2020
0

how to clear docker-compose logs

truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
Posted by: Guest on July-21-2020
0

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
Posted by: Guest on October-10-2021
0

log to file docker overflow

echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
gffdgdsgdsgdsgd
Posted by: Guest on October-05-2020

Browse Popular Code Answers by Language