内容目录
第一坑 镜像地址
docker pull jenkins 是https://hub.docker.com/_/jenkins 六年前更新的 提示一堆插件不可用
docker pull jenkins/jenkins 才是正解 https://hub.docker.com/r/jenkins/jenkins
第二坑更新插件报错
Signature verification failed in update site 'default'
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
启动加上环境变量
JAVA_OPTS=-Dhudson.model.DownloadService.noSignatureCheck=true
示例
docker run -it --name=jenkins -p 8080:8080 -p 50000:50000 -v /opt/jenkins:/var/jenkins_home -e "JAVA_OPTS=-Dhudson.model.DownloadService.noSignatureCheck=true" jenkins/jenkins
近期评论