这是indexloc提供的服务,不要输入任何密码
Skip to content

Add command to manage docker container log truncation #4023

@josegonzalez

Description

@josegonzalez

This can be as simple as automatically creating a logrotate file:

https://blog.birkhoff.me/devops-truncate-docker-container-logs-periodically-to-free-up-server-disk-space/

And having this enabled/disabled via a global environment variable (DOKKU_LOGROTATE). If there is no value set, it is implied true. If it has a value of false, we delete the file. If it is set to true, we create the file. The value can be set via logs:set, and is output to logs:report.

On install of dokku, we'll set this value if it is not set.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions