Wednesday, January 10, 2018

Jenkins blueocean plugin with Docker and here the Docker installation instructions

Here all the Docker images

Then I run this:

( I am using Docker 1.12 )

docker run -u root -d -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean

port 50000 is needed only if you plan to use slave build agents

(I had to remove --rm otherwise I get Conflicting options: --rm and -d )

docker ps gives you the containerid -> docker exec -ti 03e820715e74 bash

cat /var/jenkins_home/secrets/initialAdminPassword
copy and paste in localhost:8080 to unlock Jenkins

No comments: