Mac jenkins docker
时间: 2023-09-05 20:12:36 浏览: 123
docker for mac
4星 · 用户满意度95%
为在Mac上使用Docker搭建Jenkins,你可以按照以下步骤进行操作:
1. 首先,在Mac终端中输入以下命令以下载Jenkins镜像:
docker pull jenkins/jenkins [1]
2. 接下来,执行以下命令以创建Jenkins容器,并将它映射到本地的7000端口:
docker run -d -p 7000:8080 --name py42jenkins -u root -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker jenkins/jenkins:alpine [2]
这些命令将会下载Jenkins镜像并且创建一个容器,使得你能够通过在本地访问7000端口来访问Jenkins。
以上就是在Mac上使用Docker搭建Jenkins的步骤。希望对你有所帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [mac电脑使用 Docker安装jenkins](https://blog.csdn.net/o_ojjj/article/details/118026476)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Mac docker部署jenkins,在jenkins上运行自动化代码](https://blog.csdn.net/qq_37982823/article/details/122670913)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文