According config file, gzip files or rm files.
1.3K
Example:
autoclean.yaml
autoclean:
schedule: '0 * * * *'
paths:
- directory: /data/logs
filename: '*.log'
command: gzip
expire: 7
- directory: /data/logs
filename: '*.gz'
command: rm
expire: 15
$ docker run -d -v autoclean.yaml:/etc/autoclean/autoclean.yaml -v /data/logs:/data/logs wooos/autoclean
Content type
Image
Digest
sha256:50d7c76d4…
Size
47.7 MB
Last updated
almost 4 years ago
docker pull wooos/autoclean