commit | 640f91d82dbb9839192c32200f3b42583bc6f20e | [log] [tgz] |
---|---|---|
author | Michael Neale <michael.neale@gmail.com> | Wed Jul 09 18:56:29 2014 +1000 |
committer | Michael Neale <michael.neale@gmail.com> | Wed Jul 09 18:56:29 2014 +1000 |
tree | 6a0b7ef76bbb80964f7865d036433336cce044ec | |
parent | 9be25dd3d1a04255fc474068452f5ec4ac506c51 [diff] |
specify user and volume
Will likely form the basis of the official jenkins-ci image. Still working on it.
To run:
docker run -it -p 8080:8080 jenkins
To use a persistent volume
docker run -it -p 8080:8080 -v /your/home:/var/jenkins_home
You can also specify that it will run under the jenkins user:
docker run -it -u jenkins -p 8080:8080 -v /your/home:/var/lib/jenkins/home jenkins
Ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally)