当前位置:网站首页>Jenkins的便捷式安装
Jenkins的便捷式安装
2022-06-24 15:33:00 【独家雨天】
本文通过Docker安装,简单便携,且可以重复利用。
- 从官网jenkins - Docker Hub拉取镜像文件。会自动的拉取最新的Jenkins镜像文件。
docker pull jenkins
- 运行Jenkins的启动镜像
docker run -d --name jenkins -p 8081:8080 -p 50000:50000 -p 50000:50000 -v /home/ubuntu/opt/jenkins:/var/jenkins_home jenkins
参数说明:
run -d表示启动容器,并且后台运行--name jenkins表示以jenkins作为容器名,默认为一个随机字符串-p 8081:8080表示映射宿主主机的8081端口和容器内的8080端口关系。由于宿主主机8080端口经常是别的服务,所以以宿主8081端口映射容器内的8080端口。-p 50000:50000同上-v /home/ubuntu/opt/jenkins:/var/jenkins_home表示将宿主主机的/home/ubuntu/opt/jenkins的目录映射到容器内的/var/jenkins_home目录下。(强烈建议使用该参数)否则,容器关闭或者销毁之后,Jenkins内部数据会丢失。可以理解为挂载。
- 启动成功之后,通过
docker logs jenkins命令,查看初始的Jenkins密码。
docker logs命令后面的 jenkins 表示的是前面定义的容器名。
边栏推荐
- Crmeb multi merchant system applet authorization problem solving paste
- Motion planning of floating base robot
- QoS Technology in network
- Laravel 8 realizes auth login
- FPGA based analog I ² C protocol system design (Part 2)
- When installing Wireshark, npcap cannot be installed successfully. It is recommended to use WinPcap first
- Design of CAN bus controller based on FPGA (Part 2)
- Unimelb COMP20008 Note 2019 SM1 - Data formats
- Improving the classification of motor imagery by combining EEG and MEG signals in BCI
- Redis consistency hash and hash slot
猜你喜欢

He is also a junior test engineer. Why is his salary high? The interview must be brilliant at these points

Bert whitening vector dimension reduction and its application

Laravel 8 realizes auth login

A common defect management tool - Zen, which teaches you from installation to using the handle

CVPR 2022 - Interpretation of selected papers of meituan technical team

Keyword of ES mapping; Term query add keyword query; Change mapping keyword type

How to generate assembly code using clang in Intel syntax- How to generate assembly code with clang in Intel syntax?

Laravel8 uses faker to call factory to fill data

Wide measuring range of jishili electrometer

【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆
随机推荐
Special topic of IM code scanning login Technology (III): easy to understand. A detailed principle of IM code scanning login function is enough
一个简单而功能强大的开发者工具箱Box3.cc
Is it safe for futures companies to open accounts
Is it safe to open an account in flush? What preparation is needed
PHP export data as excel table
How do individuals open accounts for stock speculation? Is it safe to open accounts for stock speculation
Redis consistency hash and hash slot
在同花顺开户证券安全吗,需要什么准备
VIM common shortcut keys
Step by step introduction to sqlsugar based development framework (9) -- Realizing field permission control with WinForm control
股票开户要找谁?在线开户安全么?
SF express: please sign for MySQL soul ten
Esp32 series -- comparison of esp32 series
Teach you how to deploy the pressure test engine on Tencent cloud
Do you really know the difference between H5 and applet?
Design of vga/lcd display controller system based on FPGA (Part 2)
golang中Map的并发写入
Industry cases of successful digital transformation
MySQL 开发规范
高速公路服务区智能一体机解决方案