| Michael Neale | 2dedbdb | 2014-07-09 16:58:10 +1000 | [diff] [blame] | 1 | # This is a WIP |
| 2 | |
| Michael Neale | 71eb3ab | 2014-07-09 18:04:01 +1000 | [diff] [blame^] | 3 | Will likely form the basis of the official jenkins-ci image. Still working on it. |
| 4 | |
| 5 | To run: |
| 6 | |
| 7 | ``` |
| 8 | docker run -it -p 8080:8080 jenkins |
| 9 | ``` |
| 10 | |
| 11 | To use a persistent volume |
| 12 | |
| 13 | ``` |
| 14 | docker run -it -p 8080:8080 -v /your/home:/var/lib/jenkins/home jenkins |
| 15 | ``` |
| 16 | |
| 17 | You can also specify that it will run under the jenkins user: |
| 18 | |
| 19 | ``` |
| 20 | docker run -it -u jenkins -p 8080:8080 -v /your/home:/var/lib/jenkins/home jenkins |
| 21 | ``` |
| 22 | |
| 23 | Ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally) |