Skip to content

Check for root user in entrypoint #207

@Cilenco

Description

@Cilenco

Currently the container image is assuming that the container is started as root user.
Running the image with the --user uid:gid option crashes the container with the message:

su-exec: setgroups(0): Operation not permitted

The entrypoint should check if the current user is root (e.g. [ $(id -u) = 0 ]) and only run su-exec if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions