mirror of
https://github.com/LamGC/jenkins-agent-with-docker.git
synced 2025-04-30 06:37:29 +00:00
通过创建用户组来解决权限问题。
This commit is contained in:
parent
a28a43da08
commit
7a008d07f3
@ -4,6 +4,8 @@ FROM jenkins/inbound-agent:${BASE_TAG}
|
|||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
RUN groupadd -g 987 docker && usermod -aG docker jenkins
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
|
Loading…
Reference in New Issue
Block a user