Answers for "how to clear docker-compose logs"

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

how to clear docker-compose logs

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language