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
Thank you for your input. We will consider this functionality in upcoming releases if it is popular. Everyone, please continue voting for this feature if you consider it important.
—
IG
-
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!