MAC Environment Docker Installation Jenkins

Source: Internet
Author: User
Tags docker ps

Many tutorials on the web are about the Docker installation on Linux Jenkins, but I use a Mac, so refer to previous articles written by predecessors to record their own installation process.

1. New local mount file address, Mac I used

mkdir /Users/vincentwen/docker/jenkins



2. Run Jenkins to mount the local host file address
8080:8080 -p 50000:50000 --name jenkins --privileged=true -v /Users/vincentwen/docker/jenkins:/var/jenkins_home jenkins

Require the host password to be entered

To see if the container is running successfully

sudo docker ps


You can see that the container ID indicates that the container is running successfully. Start formally installing Jenkins

First visit to Jenkin

Access Address:

http://localhost:8080
Need to enter a randomly generated password for Jenkins
There are two ways to get this password
    • 1: Directly into the host mounted local files, that is, my Mac folder/users/vincentwen/docker/jenkins, this address, find the file Initialadminpassword, use a text editor to open

    • 2 Using commands to view

cat /Users/vincentwen/docker/jenkins/secrets/initialAdminPassword



Copy the password, paste it into the registration Input password screen, click Next


3 Installing Plugins

You can use the recommended installation plug-in, or you can customize the installation plugin

I use the recommended plug-in installation here, choose to start the installation

4 Enter your account password and click Finish installation

Complete the installation

MAC Environment Docker Installation 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.