docker安装jenkins


docker run -d -u root \
    --name jenkins \
    --restart=always \
    -p 30000:8080 \
    -p 30001:50000 \
    -v jenkins-data:/var/jenkins_home \
    -v /var/run/docker.sock:/var/run/docker.sock \
    jenkins/jenkins:2.426.1-lts-jdk11
http://10.18.12.88:30000/pluginManager/advanced
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
sed -i 's#https://updates.jenkins.io/download#https://mirrors.tuna.tsinghua.edu.cn/jenkins#g' /var/lib/docker/volumes/jenkins-data/_data/updates/default.json
sed -i 's#http://www.google.com#https://www.baidu.com#g' /var/lib/docker/volumes/jenkins-data/_data/updates/default.json

文章作者: YoonaDa
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 YoonaDa !
  目录