Jenkins为Docker构建映像吗?

编程入门 行业动态 更新时间:2024-10-11 21:25:00
本文介绍了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构建映像吗?

本文发布于:2023-10-27 04:29:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1532318.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:映像   Jenkins   Docker

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!