Replies: 3 comments
-
|
This is Docker's default logging behavior, not specific to Pulse. The json-file logging driver has no size limit by default. To fix:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}Then restart Docker:
services:
pulse:
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"To clean up the existing log (stops the container temporarily): docker compose down
truncate -s 0 /var/lib/docker/containers/fa56ff...00db/fa56ff...-json.log
docker compose up -dOr without stopping (less safe): truncate -s 0 /var/lib/docker/containers/fa56ff...00db/fa56ff...-json.log |
Beta Was this translation helpful? Give feedback.
-
|
Ok, will do. If this is Docker default behavior, not sure why I haven't run into this with my other containers. I will truncate and add log rotation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
That log file sure grows fast, it's 3M in 2 hours. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like this log has been growing since Pulse was first started. How does / should it be cleaned up?
10G Dec 10 09:12 /var/lib/docker/containers/fa56ff528e2ae6f78abf1c0beb8747a8a678f08bcc62e9f01c749fe7609700db/fa56ff528e2ae6f78abf1c0beb8747a8a678f08bcc62e9f01c749fe7609700db-json.logBeta Was this translation helpful? Give feedback.
All reactions