blob: 00813762125ba12ff0bf56ffdec714016ab694ac [file] [log] [blame] [view]
Michael Neale2dedbdb2014-07-09 16:58:10 +10001# This is a WIP
2
Michael Neale71eb3ab2014-07-09 18:04:01 +10003Will likely form the basis of the official jenkins-ci image. Still working on it.
4
5To run:
6
7```
Michael Neale709841c2014-07-14 12:16:58 +10008docker run -p 8080:8080 jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +10009```
10
11To use a persistent volume
12
13```
Michael Neale709841c2014-07-14 12:16:58 +100014docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +100015```
16
Michael Neale709841c2014-07-14 12:16:58 +100017The volume for the "myjenkins" named container will then be persistent.
18
19You can also bind mount in a volume from the host:
20
21
22First, ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally - or use -u root), then:
Michael Neale71eb3ab2014-07-09 18:04:01 +100023
24```
Michael Neale709841c2014-07-14 12:16:58 +100025docker run -p 8080:8080 -v /your/home:/var/jenkins_home jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +100026```
27
Michael Neale709841c2014-07-14 12:16:58 +100028
29