docker pull leelow29/jenkins-dind-nodejs
mkdir /srv/jenkins
chmod 0666 /srv/jenkins
docker run --name jenkins --privileged -d -p 127.0.0.1:8080:8080 -v /srv/jenkins:/var/jenkins_home jenkins-dind-nodejs:latest
Note: the flag --priviledged
is necessary to be able to use docker
from the container.
In this example, the jenkins web interface is available at http://127.0.0.1:8080. If you want to login as admin, you can get the initial admin password typing the following command:
docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
git clone https://github.com/Leelow/jenkins-dind-nodejs.git
cd jenkins-dind-nodejs
docker build -t jenkins-dind-nodejs .