Skip to content

Commit 8536496

Browse files
authored
fix(docker): remove default ubuntu user (#157)
A default `ubuntu` user was added on ubuntu images 22.10 and up. This breaks permissions on some existing installations due to the default `plex` user now having a different UID (1001). This removes the default `ubuntu` user and restores the previous UID for the `plex` user. References: - https://bugs.launchpad.net/cloud-images/+bug/2005129 - https://forums.plex.tv/t/plex-docker-image-should-not-change-permissions-on-mounted-volumes-if-pid-and-gid-is-defined/928780 - https://forums.plex.tv/t/custom-domain-ssl-does-not-work-after-update-to-server-version-1-42-1-10060-4e8b05daf/928405
1 parent 58e7444 commit 8536496

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ENV TERM="xterm" LANG="C.UTF-8" LC_ALL="C.UTF-8"
99
ENTRYPOINT ["/init"]
1010

1111
# Add user
12-
RUN useradd -U -d /config -s /bin/false plex && \
12+
RUN userdel -r ubuntu && \
13+
useradd -U -d /config -s /bin/false plex && \
1314
usermod -G users plex && \
1415
\
1516
# Setup directories

0 commit comments

Comments
 (0)