问题描述
我已经通过docker启动了jenkins,它已经以管理员模式启动.当我选择安装建议的插件时输入密码后,大多数安装都会失败.发布我创建jenkins用户并导航到jenkins主页时,它会显示错误,如下面的屏幕截图所示.
I had launched jenkins through docker, it has been launched in administrator mode. After entering password when i selected to install suggested plugin it fails with most of the installation. Post that when i created jenkins user and navigated to jenkins home page it displays errors as shown in below screenshot.
通过以下命令安装了docker和jenkins
Installed docker and jenkins through below commands
sudo yum install docker-ce
systemctl start docker
docker pull Jenkins
docker run -p 8080:8080 jenkins
此外,当我去管理jenkins并尝试安装其他一些插件(如Git)时,它也会失败.我不确定这是怎么回事?为什么安装失败.
Also when i go to manage jenkins and trying to install some other plugins like Git, it fails. I am not sure what is wrong with it? Why installation is failing.
下面是jenkins在安装时打印的日志.
Below is the log being printed by jenkins while installation.
下面也是通过插件管理器安装时收到的警告消息的屏幕截图
Also below is the screenshot of warning mesage i am getting while installing through plugin manager
推荐答案
在使用latest weekly
时,我遇到了同样的问题,所以我建议使用lts
,因为在命令中指定jenkins
时, latest weekly
I had the same issue when using the latest weekly
, so I suggest to use the lts
since when specify jenkins
in your command you are pulling latest weekly
像这样运行您的命令:
docker pull jenkins/jenkins:lts
docker run -p 8080:8080 jenkins/jenkins:lts
请参见詹金斯
这篇关于无法在Docker上安装Jenkins的建议插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!