Sign inSign up

stakater/logrotate

By stakater

•Updated over 6 years ago

Dockerized Logrotate

Image
3

500K+

stakater/logrotate repository overview

⁠Dockerized Logrotate

⁠How to run

  • Your logrotate config files should be mapped in the /etc/logrotate.d inside the container
  • The cron job will run daily at 00:00:00 UTC time by default. You can override the cron schedule by overwriting the CRON_SCHEDULE environment variable.
  • Run the following to run the docker container.
    docker run -d -v $(pwd)/config/:/etc/logrotate.d/ stakater/logrotate

⁠References

Tag summary

Content type

Image

Digest

Size

9.3 MB

Last updated

over 8 years ago

docker pull stakater/logrotate