Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install jenkins:2.7.2 for centos8 docker

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "centos8 docker how to install jenkins:2.7.2", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's learn how to install jenkins:2.7.2 in centos8 docker.

docker pull jenkins :2.7.2

mkdir /home/jenkins

chown -R 1000:1000 /home/jenkinsdocker run -d -p 10240:8080 -p 10241:50000 -v /home/jenkins:/var/jenkins_home -v /etc/localtime:/etc/localtime --name myjenkins jenkins:2.7.2

In the/home/jenkins address, find/hudson.model.UpdateCenter.xml and replace the following line with the following

jenkins_home Please check in Environment Variables;

https://updates.jenkins.io/update-center.json replaced with https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

default

https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

sudo service docker restart

cat /home/jenkins/secrets/initialAdminPassword

View jenkins in real-time ri'z

docker logs myjenkins -f

At this point, I believe that everyone has a deeper understanding of "centos8 docker how to install jenkins:2.7.2", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report