[英]Unable to install suggested plugins of jenkins on docker
I had launched jenkins through docker, it has been launched in administrator mode.我已经通过 docker 启动了 jenkins,它已经以管理员模式启动了。 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.
当我创建 jenkins 用户并导航到 jenkins 主页时,它会显示错误,如下面的屏幕截图所示。
Installed docker and jenkins through below commands通过以下命令安装 docker 和 jenkins
sudo yum install docker-ce
systemctl start docker
docker pull Jenkins
docker run -p 8080:8080 jenkins
Also when i go to manage jenkins and trying to install some other plugins like Git, it fails.此外,当我去管理 jenkins 并尝试安装其他一些插件(如 Git)时,它失败了。 I am not sure what is wrong with it?
我不确定它有什么问题? Why installation is failing.
为什么安装失败。
Below is the log being printed by jenkins while installation.下面是 jenkins 在安装时打印的日志。
Also below is the screenshot of warning mesage i am getting while installing through plugin manager下面也是我在通过插件管理器安装时收到的警告消息的屏幕截图
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
我使用的时候有同样的问题
latest weekly
,所以我建议用lts
自当指定jenkins
在你的命令,你是拉latest weekly
run your command like this:像这样运行你的命令:
docker pull jenkins/jenkins:lts
docker run -p 8080:8080 jenkins/jenkins:lts
I've run into this error too.我也遇到过这个错误。 Noticed that Jenkins needs a volume to be mounted to store all the plugin data.
注意到 Jenkins 需要挂载一个卷来存储所有插件数据。 According to the documentation , running this way would create /var/jenkins_home on the host system and resolved the errors given by OP.
根据文档,以这种方式运行将在主机系统上创建 /var/jenkins_home 并解决 OP 给出的错误。
docker run -p 8080:8080 -p 50000:50000 -d -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.