当前位置:网站首页>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 表示的是前面定义的容器名。
边栏推荐
- Domestic payment system and payment background construction
- Istio practical skill: enable accesslog locally
- Two way combination of business and technology to build a bank data security management system
- Do you really know the difference between H5 and applet?
- US Senate promotes bipartisan gun safety bill
- FPGA based analog I ² C protocol system design (medium)
- 个人如何开户炒股 炒股开户安全吗
- [log service CLS] a taste of Tencent cloud log service CLS
- update+catroot+c000021a+critical service failed+drivers+intelide+viaide+000000f
- A common defect management tool - Zen, which teaches you from installation to using the handle
猜你喜欢

A brief introduction to the lexical analysis of PostgreSQL

As a developer, what is the most influential book for you?

Do you really know the difference between H5 and applet?

Multimeter resistance measurement diagram and precautions

Wide measuring range of jishili electrometer

为什么企业实施WMS仓储管理系统很容易失败

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

Method after charging the idea plug-in material theme UI

Two way combination of business and technology to build a bank data security management system

FreeRTOS新建任务不执行问题解决办法
随机推荐
Network engineers must know the network essence knowledge!
leetcode 139. Word break word split (medium)
How to modify the login user name of easynvr video monitoring system?
An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!
Working with collections
[tke] multiple ingress controllers are used in the cluster
Es search content top
How to allow easydss online classroom system to upload an on-demand file with a space in the file name?
QoS Technology in network
US Senate promotes bipartisan gun safety bill
How to build a high-performance go cache Library
Data stack technology sharing: how to use data stack for data collection?
股票网上开户及开户流程怎样?网上开户安全么?
时间同步业务的闭环管理——时间监测
MySQL 开发规范
The industrial control security of roaming the Intranet
Keyword of ES mapping; Term query add keyword query; Change mapping keyword type
Cvpr2022 𞓜 thin domain adaptation
Laravel 8 realizes auth login
CIA security model - use PGP to describe privacy and integrity of network security CIA model