smartnode
smartnode copied to clipboard
Consider Adding Log Rotation to Docker
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-filetolocalwhich 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