Skip to content

[FR] Non-root docker user #13337

Open

Description

@r-xyz

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

Hi and thanks for the great software.
I was wondering if it would be possible to support docker non-root execution.
Currently many python libraries are installed under /root/.local/..., which will generate permission errors.

Suggested solution

Implementation should be relatively easy to achieve, moving libs to a different folder, owned by user inventree which a chosen default uid/gid.
On startup, if PUID/PGID are set, inventree user can be updated to match them.

Describe alternatives you've considered

Alternatively, move all libs to a not user-bound path, and make it r-x by all users.
Then user id can be changed by using docker user option.

Please let me know which option you are more incline to support, I will be happy to submit a PR.

Examples of other systems

https://github.com/linuxserver/docker-baseimage-ubuntu/blob/resolute/root/etc/s6-overlay/s6-rc.d/init-adduser/run

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    triage:not-checked
    on Nov 20, 2026
  2. SchrodingersGat commented on Nov 20, 2026

    @SchrodingersGat
    Member

    @r-xyz can you please review the proposed changes in #12760 - I am looking for feedback from experienced docker users

  3. added this to the 1.8.0 milestone on Nov 20, 2026
  4. added
    docker
    setup
    and removed
    triage:not-checked
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerenhancementsetup

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions