Skip to content

Allow to run as root / different user #11

Closed
@pazoozooCH

Description

@pazoozooCH

Is there a compelling reason not to run Logstash in the container as root?

The problem is that the logstash user 999 will not be able to run most logs (like /log/syslog). I think it's better to run root in a Docker container and mount the volume as read-only as to change file permission in the host to allow a non-root docker user to read the logs.

I would suggest just skipping the gosu or add the functionality to specify a user ID to run as when starting the container (through an env variable)...

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