Public Repository

Last pushed: 2 years ago
Short Description
Docker container based on Alpine Linux allowing you to use logrotate as a docker command.
Full Description

Docker container allowing you to use logrotate as a docker command.

This container is based on Alpine Linux

Version

Latest version is 1.0.0 including Logrotate 3.8.8

inem0o/logrotate
inem0o/logrotate:latest
inem0o/logrotate:1.0
inem0o/logrotate:1.0.0

Configuration

Default configuration is stored in /logrotate.conf

/var/log/nginx/*.log {
  daily
  missingok
  rotate 7
  compress
  delaycompress
  notifempty
  copytruncate
  su root
}

Quick Start

docker run --name='logrotate' --rm \
-v $(pwd)/logrotate.conf:/logrotate.conf \
-v $(pwd)/logs:/var/log \
inem0o/logrotate

Changelog

1.0.0

  • initial release
Docker Pull Command
Owner
inem0o

Comments (0)