Jenkins Docker Quickstart
Here is quickstart bash script. If you have Docker installed, you will have Jenkins in 1 minute.
git clone https://github.com/4OH4/jenkins-docker.git cd jenkins-docker docker build -t jenkins-docker . docker volume create jenkins_home docker run -it -p 8080:8080 -p 50000:50000 \ -v jenkins_home:/var/jenkins_home \ -v /var/run/docker.sock:/var/run/docker.sock \ --restart unless-stopped jenkins-docker
Grab the password which is echoed to screen and open Localhost in your browser (T-1). It will ask for a new user for the first time. You can select “install suggested plugins” and your Jenkins will be ready.
If password is not echoed please docker exec -it cat /var/jenkins_home/secrets/initialAdminPassword