Skip to content

Add log rotation signal handling to docker daemon #7333

@kuon

Description

@kuon

When docker runs in daemon mode, send kill -HUP to it restarts all the container.

While the logging driver is in the work #7195, and for simple setup, it would help considerably to be able to use logrotate with something like /var/lib/docker/containers/*/*.log to rotate the log. This path works fine with log rotate, but the missing thing is to be able to signal docker to reopen the xxx-json.log.

Sending SIGHUP or SIGUSR1 should reopen all log files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions