Skip to content

[container] Image requires root privileges to run #21

@timo-reymann

Description

@timo-reymann

When attempting to run the container as a non-root user, it fails to start. This requires running the container with --user root, which is not ideal for security and portability.

Steps to Reproduce:

  1. Pull the latest image.

  2. Run the container with a non-root UID/GID, e.g.:

    docker run --user 1000:1000 <image>
  3. Observe that it fails to start.

Expected Behavior:
The container should run successfully without root privileges, following best practices for container security.

Actual Behavior:
Container startup fails unless run as root.

Suggested Fix:

  • Ensure proper file ownership and permissions in the image.
  • Configure a non-root default user in the Dockerfile via USER instruction.
  • Avoid binding privileged ports or operations that require root.

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