November 23, 2025Nov 23 Hey there, I'm wondering if I'm the first one asking this question. I couldn't find an answer. I need `logrotate` for my Docker Traefik service. I mean, I created a file a while ago in `/etc/logrotate.d` and was wondering why the logrotate didn't work. Probably because Unraid overrides the logrotate folder with its own defaults every boot.Do I need a user script at the first array start to add the custom logrotate script every time? I just want to be sure that this is the way to go and I'm not missing something.Kind regards
January 17Jan 17 Community Expert You can enable and configure log rotation for docker (all containers) in Settings > Docker.You'll need to stop the Docker service if its running, and toggle advanced mode to see the settings.
January 18Jan 18 Author @tjb_altf4 This is not working for individual services like Traefik. Only for Docker itself.
January 18Jan 18 Community Expert 22 hours ago, sasbro97 said:@tjb_altf4 This is not working for individual services like Traefik. Only for Docker itself.if the containers are saving logs separately, you need to manage per service in the application config/settings like you would do for bare metal installs on any other system.However, the standard design pattern for docker is that logs get redirected to STDOUT/STDERR (if not already sent there), and docker manages these logs, which are available via "docker logs SOME-CONTAINER-NAME"
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.