Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-image
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
docker-image
Commits
9c932d58
Commit
9c932d58
authored
May 05, 2018
by
caiyanming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add k8s docker group to jenkins user
Change-Id: I160b9dbc6a38d90b3f3cf9c79bca786d48059afb
parent
8ccc2011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
jenkins/Dockerfile
jenkins/Dockerfile
+2
-1
No files found.
jenkins/Dockerfile
View file @
9c932d58
...
...
@@ -33,6 +33,7 @@ ARG user=jenkins
ARG
group=jenkins
ARG
uid=1000
ARG
gid=1000
ARG
docker_gid=994
ARG
http_port=8080
ARG
agent_port=50000
...
...
@@ -44,7 +45,7 @@ ENV JENKINS_SLAVE_AGENT_PORT ${agent_port}
# ensure you use the same uid
RUN
groupadd
-g
${
gid
}
${
group
}
\
&&
useradd
-d
"
$JENKINS_HOME
"
-u
${
uid
}
-g
${
gid
}
-m
-s
/bin/bash
${
user
}
\
&&
usermod
-aG
docker
${
user
}
&&
echo
"docker:x:
${
docker_gid
}
:
${
user
}
"
>>
/etc/group
# Jenkins home directory is a volume, so configuration and build history
# can be persisted and survive image upgrades
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment