目录
2、安装1Panel工具会自动安装docker,只用命令检查
3.1、也可以通过docker logs jenkins 查看日志
4.1、编辑hudson.model.UpdateCenter.xml
8、安装推荐插件/选择插件来安装(小白直接安装推荐插件即可)
1Panel可以作为一个linux容器化可视化管理工具
一、1Panel+Docker
1、远程安装
官网文档地址:https://1panel.cn/docs/installation/online_installation/
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sh quick_start.sh
2、安装1Panel工具会自动安装docker,只用命令检查
二、Jenkins
1、拉取镜像
docker pull jenkins/jenkins
2、创建Jenkins挂载目录并授权权限
mkdir -p /usr/local/jenkins
chmod 777 /usr/local/jenkins
3、创建并启动Jenkins容器
3.1、也可以通过docker logs jenkins 查看日志
4、配置镜像加速器
cd /usr/local/jenkins
4.1、编辑hudson.model.UpdateCenter.xml
vi hudson.model.UpdateCenter.xml
4.2、修改成清华大学镜像:
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json