Ubuntu17.1--docker Configuration Jenkins Service

Source: Internet
Author: User
Tags docker run jenkins docker

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:

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.