标签:mirrors admin 容器化 secret 查看 centos 容器 docker https
# 1.拉取镜像 docker pull jenkins/jenkins # 2.启动 mkdir /jenkins && chmod 777 /jenkins docker run -itd -p 9090:8080 -p 50000:50000 --name jenkins --privileged=true --restart=always -v /jenkins:/var/jenkins_home jenkins/jenkins:latest # 3.查看Password docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword # 4.更新插件下载源 cd jenkins/updates #进入更新配置位置 sed -i ‘s/http:\/\/updates.jenkins-ci.org\/download/https:\/\/mirrors.tuna.tsinghua.edu.cn\/jenkins/g‘ default.json && sed -i ‘s/http:\/\/www.google.com/https:\/\/www.baidu.com/g‘ default.json # 5.在插件的高价管理界面修改源地址 https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json # 或 http://mirror.esuni.jp/jenkins/updates/update-center.json
# 重启jenkins的方法 # 在浏览器的网址输入:http://192.168.1.9:9090/restart 回车即可 # 遇见No such plugin: cloudbees-folder问题,重启即可
标签:mirrors admin 容器化 secret 查看 centos 容器 docker https
原文地址:https://www.cnblogs.com/chusiyong/p/12861181.html