Jenkins master安装
安装Jenkins
[root@hub ~]# docker pull jenkins/jenkins
Using default tag: latest
latest: Pulling from jenkins/jenkins
Digest: sha256:3c34c0703e9bb2b82ca57dbbab1870a11e9df509e675492e589670aae16dc419
Status: Downloaded newer image for jenkins/jenkins:latest
docker.io/jenkins/jenkins:latest
[root@hub ~]# mkdir -p /data/cicd3/jenkins
[root@hub ~]# chown -R 1000:1000 /data/cicd3/
[root@hub ~]# docker run -itd --name jenkins -p 8080:8080 -p 50000:50000 -e JAVA_OPTS="-Dorg.apache.commonsjelly.tags.fmt.timeZone='Asia/Shanghai'" --privileged=true -v /data/cicd3/jenkins:/var/jenkins_home jenkins/jenkins
954f63f95f560b3c1405d4802cd1038da1ab34addfb1ff6f3cf27f3f5a3aa268
[root@hub ~]# docker ps |grep jenkins
更换国内Json源
https://www.jenkins-zh.cn/tutorial/management/plugin/update-center/