smartnode icon indicating copy to clipboard operation
smartnode copied to clipboard

Consider Adding Log Rotation to Docker

Open LookingForOwls opened this issue 4 years ago • 0 comments

Docker does not rotate container logs by default which could result in disk exhaustion in some scenarios.

There are two suggested fixes:

  • Change the logging driver from json-file to local which will enable rotation by default.
  • Add log rotation options in the RP docker compose.

Moving to local logging seems to be the suggested method here: https://docs.docker.com/config/containers/logging/configure/

Compose Logging Options: https://docs.docker.com/compose/compose-file/compose-file-v3/#logging

LookingForOwls avatar Sep 26 '21 05:09 LookingForOwls