Use Docker+jenkins to build CI automatic deployment

Source: Internet
Author: User
Tags docker run jenkins docker

Step-by

Installing the Jenkins Docker image

sudo docker pull Jenkins

Create Jenkins_home folder in home directory

mkdir Jenkins_home

Put the Jenkins_home folder to Jenkins user operation rights

sudo chown-r 1000/home/jenkins_home

Start Jenkins Docker on port 8080 (if it is already occupied, you can replace it with the corresponding other port)

sudo docker run-p 8080:8080-p 50000:50000-v/home/jenkins_home:/var/jenkins_home Jenkins

Open IP Address: 8080 Web page, follow the prompts
/var/jenkins_home/secrets/initialadminpassword
Find the initial code inside to change the/var/jenkins_home to/home/jenkins_home.

Cat/home/jenkins_home/secrets/initialadminpassword

Follow the corresponding password initialization and start using Jenkins.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.