docker-boshrelease icon indicating copy to clipboard operation
docker-boshrelease copied to clipboard

Add logrotate property for containers

Open Nibooor opened this issue 5 years ago • 3 comments

Standard docker container logs are only available for as long as the container is running, since a monit stop also removes the container (including logs) using docker rm.

To properly persist logs even after a container is stopped or restarted it seems that you have to write your own application logs and bind-mount the log directory to a persistent disk.

However, logs are not rotated this way.

To avoid the necessity of doing manual configurations to the bosh release or on a VM, make custom logrotation settings possible via a container property.

Nibooor avatar Dec 01 '20 08:12 Nibooor

CLA Signed

The committers are authorized under a signed CLA.

  • :white_check_mark: Robin (7930148678f9f69a4770be897e57932f775b38d9)

Stale pull request message

github-actions[bot] avatar Aug 05 '21 09:08 github-actions[bot]

@neil-hickey Any chance somebody could do a code review for this change? I see you recently merged some PRs, maybe you can help to identify somebody to look into this.

thoHeinze avatar Aug 07 '21 20:08 thoHeinze