Docker中搭建Jenkins

环境要求;

1. 操作系统:macOS High Sierra

2. Docker:Docker version 17.12.0-ce(install docker in Mac)

在Dokcer中搭建Jenkins(master)

1. pull latest image

docker pull jenkins

2. cd /Users/{local Jenkins folder}

docker run -d -p 49001:8080 -v $PWD/jenkins:/var/jenkins_home:z -t jenkins

Official linke:

https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+with+Docker

你可能感兴趣的:(devops,Jenkins)