简体   繁体   English

詹金斯在Docker-Machine中

[英]Jenkins in Docker-Machine

I created a Docker machine using, https://docs.docker.com/v17.12/machine/get-started/#use-machine-to-run-docker-containers 我使用https://docs.docker.com/v17.12/machine/get-started/#use-machine-to-run-docker-containers创建了Docker计算机

在此处输入图片说明

I have also created a jenkins image on that docker-machine and added the docker-build-step plugin. 我还在该docker-machine上创建了一个jenkins映像,并添加了docker-build-step插件。 When I use the Test Connection I get the following message: 当我使用测试连接时,我收到以下消息: 在此处输入图片说明

How do I connect my jenkins image to the docker daemon? 如何将我的jenkins映像连接到docker守护进程?

The protocol to connect the API is not tcp is http is a REST API URL what Jenkins expect. 连接API的协议不是tcphttp是Jenkins期望的REST API URL。 Try with: 尝试:

http://172.21.245.40:2376

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM