Public | Automated Build

Last pushed: 10 months ago
Short Description
Truncates container logs when they grow in size to avoid filling up the disk.
Full Description

docker-logrotate

Truncates container logs when they grow in size

Usage

docker run -d -v /var/lib/docker/containers:/var/lib/docker/containers:rw dailyhotel/logrotate

Sometimes very large log files are already occupying the most of storages and no place to copy the original log files onto is left on the disk. For such a case, you can set UP_AND_RUN environment variable to truncate the container logs immediately:

docker run -d -e UP_AND_RUN=true -v /var/lib/docker/containers:/var/lib/docker/containers:rw dailyhotel/logrotate
Docker Pull Command
Owner
dailyhotel
Source Repository

Comments (0)