In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "docker deploying jenkins to achieve automation". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Install docker
For details, see docker installation.
two。 Add users and user groups
-- add user group jenkinsgroup groupadd jenkinsgroup-- add user userJenkins and add to user group jenkinsgroup useradd-g jenkinsgroup userJenkins-- set userJenkins password to 123456passwd userJenkins123456123456-- to view user's IDid userJenkins-- remember user's ID, later jenkins installation needs to use
3. Install Jenkins (see link)
Method 1:
Docker run\-u root\-dit\-- name myjenkins\-p 8080 dit 8080\-p 50000 name myjenkins 50000\-v jenkins-data:/var/jenkins_home\-v / var/run/docker.sock:/var/run/docker.sock\ jenkinsci/blueocean
Method 2:
1. Download the Docker image of Jenkins: docker pull jenkins/jenkins:lts2. Run Jenkins:docker run-p 8080 etc/localtime:/etc/localtime 8080-p 50000 root 5000-- name jenkins\-u root\-v / etc/localtime:/etc/localtime\-v / data/jenkins_home:/var/jenkins_home\-e Java_OPTS=-Duser.timezone=Asia/Shanghai\-d jenkins/jenkins:lts3 in the jenkins/jenkins:lts3 container. Time echo 'Asia/Shanghai' > / etc/timezone
The browser enters the http:// server IP or domain name: 8080Zhijie, to open jenkins, the administrator password is required for the first time
Get jenkins password
Sudo docker exec myjenkins cat / var/jenkins_home/secrets/initialAdminPassword
Install the plug-in
Select the first install suggested plugins to install, the installation process is slow, there will be several installation failures, try to reinstall, really can skip the installation.
This is the end of the content of "docker deploying jenkins to automate". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.