Skip to content

Commit ffda4fc

Browse files
committed
Merge pull request jenkinsci#10 from alex-leonhardt/master
jenkinsci#9 - fix for persistent VOLUME
2 parents f3c1c3e + 29abe2d commit ffda4fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN chmod +x /usr/local/bin/jenkins.sh
1717
USER jenkins
1818

1919
# VOLUME /var/jenkins_home - bind this in via -v if you want to make this persistent.
20+
VOLUME /var/jenkins_home
2021
ENV JENKINS_HOME /var/jenkins_home
2122

2223
# define url prefix for running jenkins behind Apache (https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker run -p 8080:8080 jenkins
1818
This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume (recommended):
1919

2020
```
21-
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
21+
docker run --name myjenkins -p 8080:8080 -v /your/home:/var/jenkins_home jenkins
2222
```
2323

2424
The volume for the "myjenkins" named container will then be persistent.

0 commit comments

Comments
 (0)