In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
How do I run Jenkins in Docker? In view of this problem, today the editor summarizes this article about running Jenkins in Docker, which can be used as a reference for interested friends. I hope it will be helpful to you.
Jenkins provides an official Docker image, so it is not difficult to run jenkins under docker. If you want to run in a production environment, you need to carefully consider the details of the operation, especially the file mount of the work path.
Initialization operation
If you just want to give it a try, it's simple: docker run jenkins
Of course, you can first run a temporary container like this to copy the required initial files in the container.
Production environment operation
Docker run\
-- name jenkins\-v / mnt/db1/jenkins/jenkins_home:/var/jenkins_home\-v / root/.ssh/id_rsa:/root/.ssh/id_rsa:ro\-v / root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub:ro\-v / etc/localtime:/etc/localtime:ro\-v / etc/timezone:/etc/timezone:ro\-v / mnt/db1/jenkins/.m2:/root/ .m2\-v / mnt/db1/jenkins/maven:/usr/local/maven\-v / mnt/db1/jenkins/share:/usr/share/jenkins\-u root\-- restart always\-- network right-service\-- ip 172.18.0.4\-- privileged=true\-d jenkins/jenkins:lts read the above Have you mastered the method of running Jenkins in Docker? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.