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