Jenkins build an image for Docker?

2019-04-17 08:50发布

问题:

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

But the result is: error

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

Could anyone have some idea? Thanks

回答1:

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.