The Dockerfile builds image for latest
Jenkins based on Fedora.
Exposed ports :
Access the Jenkins files from host
Upon container creation, it is possible to share Jenkins files with host.
The files will be accessable from :
- Host - /path/on/host
Container - /shared
/var/lib/jenknis - "home" folder of jenkins (plugins, logs, etc)
- /etc/sysconfig/jenkins - jenkins configuration
/root/.ssh - root ssh keys should be used for the ssh plugin
Docker command :
docker run -d -P -v /path/on/host:/shared abraverm/jenkins:master
@lielran the 172.17.42.1 is the default IP of NIC 'docker0' on your docker host. In my example the Jenkins master and nodes are running on the same host. Docker plugin (in Jenkins) communicates with [host on tcp] so "Make sure to configure Docker host to listen on TCP port" (read the information above). Also 172.17.42.1 is the default gateway for the containers.
the URL to the Docker Server(Jenkins config) is not working for me... should i expose some kind of networking between the container of the master into my host ?
or in other words -who is 172.17.42.1 in your's example? and why port 4243 ?