sipcapture / homer7-docker

HOMER 7 Docker Images
93 stars 87 forks source link

Problem with logs #117

Closed SerhiiZahuba closed 2 years ago

SerhiiZahuba commented 2 years ago

Sometimes I see that a very large log is growing in one of the containers.

image

The screenshot shows an example of what is in this log. Sometimes the log size reaches more than 10 gigabytes. How can I remove it?

2.6G ./containers/d4c09bfb7f73b6fb92e06bea865f2f43d8c6d0c6907af46677801e95d700f0f7/d4c09bfb7f73b6fb92e06bea865f2f43d8c6d0c6907af46677801e95d700f0f7-json.log

lmangani commented 2 years ago

The screenshot is hard to read (use real text) but ultimately this is a docker question, so please refer to the docker documentation as of log rotation, ie:

cat /etc/docker/daemon.json

{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "250m",
    "max-file": "3"
  }
}