Skip to content

Commit 80c8234

Browse files
committed
Prefer unused uid/gid for CNB user
"Traditionally" we have used uid=gid=1000 for the CNB user, this is now the default for the `ubuntu` user in noble. Use a different uid/gid number Signed-off-by: Aidan Delaney <[email protected]>
1 parent b77b724 commit 80c8234

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

base-images/noble/build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ RUN apt update && \
99
COPY ./bin/yj-linux /usr/local/bin/yj
1010

1111
# Create user and group
12-
ARG cnb_uid=1000
13-
ARG cnb_gid=1000
12+
ARG cnb_uid=1001
13+
ARG cnb_gid=1001
1414
RUN groupadd cnb --gid ${cnb_gid} && \
1515
useradd --uid ${cnb_uid} --gid ${cnb_gid} -m -s /bin/bash cnb
1616

base-images/noble/run/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ ARG base_image
22
FROM ${base_image}
33

44
# Create user and group
5-
ARG cnb_uid=1000
6-
ARG cnb_gid=1000
5+
ARG cnb_uid=1001
6+
ARG cnb_gid=1001
77
RUN groupadd cnb --gid ${cnb_gid} && \
88
useradd --uid ${cnb_uid} --gid ${cnb_gid} -m -s /bin/bash cnb
99

0 commit comments

Comments
 (0)