Skip to content

michaloo/logrotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker logrotate

Docker image with golang cron replacement:

which rotate logs from all docker containers found in provided docker installation.

By default it runs every hour and rotate files daily.

Logrotate interval is controlled by GOCRON_SCHEDULER environmental variable according to golang cron package format.

Rotation config is created using /app/logrotate.tmpl and could be easily overwritten in custom Dockerfile:

ADD my-custom-logrotate-template.tmpl /app/logrotate.tmpl

Example usage

docker run -d -v /var/lib/docker:/var/lib/docker michaloo/logrotate

About

Docker with docker-gen for rotating containers logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages