Limit size of docker logs in containers for FF1 Pis
Problem: By default, the size of log files in docker is not limited, which is why we had it now that a json log file for a FF1 rover pi was more than 8 GB. You can manually delete them, but it would be better if this cannot happen in first place.
Goal: Limit size of docker logs in containers for FF1 pis via docker configs.
Help:
When starting a docker container, the following argument can be used to limit the size of log files for this container: --log-opt max-size=50m
(see https://stackoverflow.com/questions/31829587/docker-container-logs-taking-all-my-disk-space).
Probably even better would be a default config for such logs. This can be done like described here: https://docs.docker.com/config/containers/logging/configure/