Missmatching gid for docker #738
-
Hi, $ getent group docker
docker:x:977:docker_users,markus,root
$ docker run -it --rm --entrypoint sh --volume /var/run/docker.sock:/var/run/docker.sock docker.io/renovate/renovate:31.97.3-slim
$ id
uid=1000(ubuntu) gid=0(root) groups=0(root),999(docker),1000(ubuntu) It there a way to configure the gid via startup? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Run with |
Beta Was this translation helpful? Give feedback.
-
Same problem with new ubuntu, group id changed to 998. FROM renovate/renovate:<your version>
# Switch to root user
USER 0
# Create extra docker group matching needed gid.
RUN addgroup --gid 998 docker-ext
# Add extra group to user used by renovate.
RUN adduser ubuntu docker-ext
# Switch back to renovate user.
USER 1000 |
Beta Was this translation helpful? Give feedback.
-
Did you tried my suggestion? |
Beta Was this translation helpful? Give feedback.
-
Hi @viceice, |
Beta Was this translation helpful? Give feedback.
Run with
-u 1000:997
. Checkout the docker--user
command.