:: [DNG] Docker daemon logrotate
Kezdőlap
Delete this message
Reply to this message
Szerző: Tom
Dátum:  
Címzett: Dng
Tárgy: [DNG] Docker daemon logrotate
Hi

I’m trying to work out how docker daemon logging should be configured for log rotation.

There doesn’t appear to be any default logrotate config for /var/log/docker.log in either upstream docker-ce or debian docker.io packages and I have noticed that some of my machines have docker.log files getting above 8Gb in size.

I have set "log-driver": "local" in /etc/docker/daemon.json but I can’t find if that should have any affect on the daemon /var/log/docker.log or if it is just for container logs.

Should I be adding my own custom config to /etc/logrotate.d/docker?

Tom