Jenkins为Docker构建映像吗?
我是Jenkins CI与Docker集成的初学者. 我的虚拟机tcp://192.168.99.100:2376
I'm a beginner with Jenkins CI integration with Docker. My virtual machine tcp://192.168.99.100:2376
我用SVN源代码和类似该图像的配置创建了一个图像"personluz"
I created an image "personluz" with my SVN source code and the configuration like this image
但是结果是: 错误
FATAL:无法运行程序"docker":error = 2,没有这样的文件或目录
FATAL: Cannot run program "docker": error=2, No such file or directory
有人可以有个主意吗?谢谢
Could anyone have some idea? Thanks
首先,在第一张图片中突出显示的标签是 not ,它是personluz
图像的标签(它是悬空图像)
First, the tag highlighted in the first picture is not the one for the personluz
image (it is one of a dangling image)
personluz
的标签是b7782bf4cf30
.
第二,Cannot run program "docker": error=2
意味着,在执行作业的Jenkins从属服务器的上下文中,在Jenkins用户$PATH
中找不到docker.确保已为该Jenkins用户正确安装了它.
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
. Make sure it is properly installed for that Jenkins user.