docker logs
Docker containers' logs are not being rotated and in time occupies a lot of space.
It would be nice if there was an option to specify flags like:
--log-driver json-file
--log-opt max-size=50
--log-opt max-file=2
Although the current behavior is the default for the Docker service itself, it can be changed in several ways,
- For the service as a whole, "Configure the default logging driver"
- With the new Docker extension version, it is possible to launch Portainer from the extension; with Portainer, it is possible to configure logging settings individually for containers.
We would love to hear your feedback on our forum at https://talk.plesk.com.
— AY
-
Adam Lavery commented
This should not need to be a "popular" request. It's a deficiency that needs fixing. Failing to implement log housekeeping will *always* results in issues down the line. Plesk should have added log rotation with appropriate defaults from the start.
-
Dennis commented
This would be great to have. Got a PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) because the Docker log was too big for Plesk to parse!