Jenkins build an image for Docker?

2019-04-17 08:24发布

I'm a beginner with Jenkins CI integration with Docker. My virtual machine tcp://192.168.99.100:2376

I created an image "personluz" with my SVN source code and the configuration like this image

image config config

But the result is: error error message

FATAL: Cannot run program "docker": error=2, No such file or directory

Could anyone have some idea? Thanks

1条回答
Evening l夕情丶
2楼-- · 2019-04-17 08:58

First, the tag highlighted in the first picture is not the one for the personluz image (it is one of a dangling image)

The tag for personluz is 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. Make sure it is properly installed for that Jenkins user.

查看更多
登录 后发表回答