简体   繁体   中英

Unable to install suggested plugins of jenkins on docker

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.

在此处输入图片说明

Installed docker and jenkins through below commands

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. I am not sure what is wrong with it? Why installation is failing.

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

在此处输入图片说明

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

run your command like this:

docker pull jenkins/jenkins:lts
docker run -p 8080:8080 jenkins/jenkins:lts

see jenkins

I've run into this error too. Noticed that Jenkins needs a volume to be mounted to store all the plugin data. According to the documentation , running this way would create /var/jenkins_home on the host system and resolved the errors given by OP.

docker run -p 8080:8080 -p 50000:50000 -d -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM