Commit d9b9868
committed
fix(docker): remove pre-existing UID-1000 user before useradd
Ubuntu 24.04+ images pre-create an `ubuntu` user at UID 1000. The
Dockerfile defaults `PUID=1000` (the LinuxServer.io convention) and
tries to `useradd -u 1000 installer`, which fails with exit code 4
(UID already in use). Removed the pre-existing user first so the
installer user can claim UID 1000.
The `if id -u ubuntu` guard keeps the step idempotent across Ubuntu
images that do or don't ship the default user.1 parent 3277326 commit d9b9868
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments