coreos / coreos-kubernetes

CoreOS Container Linux+Kubernetes documentation & Vagrant installers
https://coreos.com/kubernetes/docs/latest/
Apache License 2.0
1.1k stars 466 forks source link

set sane DOCKER_OPTS values for log rotation #821

Closed stephanlindauer closed 4 years ago

stephanlindauer commented 7 years ago

docker uses the json-file logging driver per default. without any additional configuration the docker logs might fill up the disk at some point. maybe it's worth pointing out, that using a dropin that enables sane docker log-rotation logic, should be considered.

[Service]
Environment="DOCKER_OPTS=--log-opt max-size=10m"