mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
change the username in the image that is aligned with the group name
This commit is contained in:
parent
5beae0c4dc
commit
d59af27d69
@ -57,11 +57,11 @@ RUN ln -s agnhost agnhost-2
|
|||||||
|
|
||||||
# this user and group is used in a E2E test case of
|
# this user and group is used in a E2E test case of
|
||||||
# SupplementalGroups with pre-defined group in the image
|
# SupplementalGroups with pre-defined group in the image
|
||||||
# - image-user(uid=1000)
|
# - user-defined-in-image(uid=1000)
|
||||||
# - image-user belongs to group-defined-in-image(gid=50000)
|
# - user-defined-in-image belongs to group-defined-in-image(gid=50000)
|
||||||
RUN adduser -u 1000 -D image-user && \
|
RUN adduser -u 1000 -D user-defined-in-image && \
|
||||||
addgroup -g 50000 group-defined-in-image && \
|
addgroup -g 50000 group-defined-in-image && \
|
||||||
addgroup image-user group-defined-in-image
|
addgroup user-defined-in-image group-defined-in-image
|
||||||
|
|
||||||
ENTRYPOINT ["/agnhost"]
|
ENTRYPOINT ["/agnhost"]
|
||||||
CMD ["pause"]
|
CMD ["pause"]
|
||||||
|
Loading…
Reference in New Issue
Block a user