简体   繁体   English

Jenkins为Docker构建映像吗?

[英]Jenkins build an image for Docker?

I'm a beginner with Jenkins CI integration with Docker. 我是Jenkins CI与Docker集成的初学者。 My virtual machine tcp://192.168.99.100:2376 我的虚拟机tcp://192.168.99.100:2376

I created an image "personluz" with my SVN source code and the configuration like this image 我使用SVN源代码和类似该图像的配置创建了一个图像“ personluz”

image config 图像配置 配置

But the result is: error 但结果是: 错误 错误信息

FATAL: Cannot run program "docker": error=2, No such file or directory 严重:无法运行程序“ docker”:错误= 2,没有此类文件或目录

Could anyone have some idea? 任何人都可以有想法吗? Thanks 谢谢

First, the tag highlighted in the first picture is not the one for the personluz image (it is one of a dangling image ) 首先,在第一张图片中突出显示的标签不是用于personluz图像的personluz (它是悬空的图像之一

The tag for personluz is b7782bf4cf30 . personluz的标签是b7782bf4cf30

Second, a Cannot run program "docker": error=2 means that, in the context of the Jenkins slave executing the job, docker is not found in the Jenkins user $PATH . 其次, Cannot run program "docker": error=2意味着,在Jenkins从属执行作业的上下文中,在Jenkins用户$PATH找不到$PATH Make sure it is properly installed for that Jenkins user. 确保为该Jenkins用户正确安装了它。

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

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