Skip to main content
Our default image use node user with uid and gid 1000. If you want to change them, create a custom image with following commands:
Dockerfile
FROM <IMAGE>:<TAG> # choose your base image

ARG USER_ID=1001210001
ARG GROUP_ID=2001210001
ENV USER_UID=${USER_ID}
ENV USER_GID=${GROUP_ID}

RUN apk add -U shadow \
    && usermod -u ${USER_ID} node \
    && groupmod -g ${GROUP_ID} node \
    && apk del -U shadow
When installing the agent add runAsUser and runAsGroup to helm values.customer.yml, not that strictSecurityContext must also be enabled to modify the uid and gid.
values.customer.yaml
...
strictSecurityContext: true
runAsUser: "1002810011"
runAsGroup: "1002810011"