[GH-ISSUE #114] Dockerfile has static 1000 for UID/GID, change to allow for PUID/PGID environment variables #68

Open
opened 2026-10-18 21:14:03 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Trevinlc1997 on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/114

I was troubleshooting why changing the "user" in my docker compose file was giving me permission errors, and after executing into the image I found that regardless of what you do everything is owned by uid/gid 1000.

I am not an expert in linux/docker but I believe it's in this code below. github.com/open-webui/oikb@26bbdc9f24/Dockerfile

`RUN apt-get update \
    && apt-get install -y --no-install-recommends ca-certificates \
    && rm -rf /var/lib/apt/lists/* \
    && groupadd --gid 1000 appuser \
    && useradd --uid 1000 --gid appuser --create-home --shell /usr/sbin/nologin appuser`

The reasons this should change are

  • Run the container as someone else
  • Change the UID/GID to match NFS settings for knowledge syncing.
Originally created by @Trevinlc1997 on GitHub (Sep 2, 2026). Original GitHub issue: https://github.com/open-webui/oikb/issues/114 I was troubleshooting why changing the "user" in my docker compose file was giving me permission errors, and after executing into the image I found that regardless of what you do everything is owned by uid/gid 1000. I am not an expert in linux/docker but I believe it's in this code below. https://github.com/open-webui/oikb/blob/26bbdc9f2490741d62c348393c9c2f642238647f/Dockerfile ``` `RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* \ && groupadd --gid 1000 appuser \ && useradd --uid 1000 --gid appuser --create-home --shell /usr/sbin/nologin appuser` ``` The reasons this should change are - Run the container as someone else - Change the UID/GID to match NFS settings for knowledge syncing.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/oikb#68
No description provided.