Download mirror

docker pull jenkins/jenkins:lts
Copy the code

Run the container

docker run -p 8080:8080 -p 50000:5000 --name jenkins --privileged=true \
-u root -v/data/jenkins_home:/var/jenkins_home -d jenkins/jenkins:lts
Copy the code

Go to Jenkins’ website

If you access 192.168.15.129:8080(DEPLOYED on a VM, the IP address and port number vary with the actual situation), the following message is displayed

Run the logs command to view the password

docker logs jenkins
Copy the code

Search for the keyword “password” to see the password below

Start the installation

  1. Click on the left to start the installation

  1. Creating an Administrator Account

3. Configure Jenkins container address (based on actual conditions)

4. The installation is successful