Docker - 用docker快速安装Jenkins

安装

run -p 8088:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11

访问

http://localhost:8088/

加载太慢

 

 

快速打开解决办法:

1)、进入jenkins的工作目录,打开hudson.model.UpdateCenter.xml

2)、将url中的https://updates.jenkins.io/update-center.json,

改为https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json(国内的清华大学的镜像地址)。

或者去掉https中的“s”,改为http://updates.jenkins.io/update-center.json。

修改完,重新操作即可。

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

61ca05211510426c85c9053215631bf0

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

 

posted @ 2022-04-02 18:03  李若盛开  阅读(111)  评论(0)    收藏  举报