Asad Ali
Asad Ali

Reputation: 417

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.

enter image description here

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.

enter image description here

Also below is the screenshot of warning mesage i am getting while installing through plugin manager

enter image description here

Upvotes: 4

Views: 7936

Answers (2)

Durja
Durja

Reputation: 667

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

Upvotes: 0

LinPy
LinPy

Reputation: 18618

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

Upvotes: 14

Related Questions