Resources:
Prerequisite: The Docker environment has been configured, posting Changge is the host's hostname, and also said that the blogger's environment is Win7 the following is the use of VMware installed two Linux ubuntu17.1 virtual machine download Mirror library
sudo docker pull Jenkins
Download process and complete the following:
In the home directory to create the Jenkins_home folder, the blogger is/home/changge/desktop/jenkins_home, enter the Desktop directory input instructions:
mkdir Jenkins_home
The Jenkins_home folder to the current user to manipulate permissions
sudo chown-r 1000/home/changge/desktop/jenkins_home
Boot Jenkins Docker on port 8080 (if already occupied, can be replaced with other ports)
sudo docker run-p 8080:8080-p 50000:50000-v/home/changge/desktop/jenkins_home:/var/jenkins_home Jenkins
Open IP Address: 8080 Web page, follow the prompts to enter the initial password, the following fool-type installation can be
In this directory:
/home/changge/desktop/jenkins_home/secrets/initialadminpassword
Find the initial password inside and replace/var/jenkins_home with/home/changge/desktop/jenkins_home.
Cat/home/jenkins_home/secrets/initialadminpassword
After the successful configuration, the following: