Jenkins为Docker构建映像吗? [英] Jenkins build an image for Docker?

查看:149
本文介绍了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.

这篇关于Jenkins为Docker构建映像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆