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 @   李若盛开  阅读(101)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
点击右上角即可分享
微信分享提示