commit | 57de5eb638f3bd80e544437c3fdccf77c3343d7f | [log] [tgz] |
---|---|---|
author | Michael Neale <michael.neale@gmail.com> | Tue Jul 15 19:41:30 2014 +1000 |
committer | Michael Neale <michael.neale@gmail.com> | Tue Jul 15 19:41:30 2014 +1000 |
tree | 7bab1d26e52028e0b9b6b533f664e8239233603e | |
parent | 09d4e7149edcb4b91572334a88c6710ab0b7e91b [diff] |
sets slave port as docker needs to map ahead of time
Will likely form the basis of the official jenkins-ci image. Still working on it.
To run:
docker run -p 8080:8080 jenkins
To use a persistent volume
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
The volume for the "myjenkins" named container will then be persistent.
You can also bind mount in a volume from the host:
First, ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally - or use -u root), then:
docker run -p 8080:8080 -v /your/home:/var/jenkins_home jenkins