Reputation: 176
I'm new to Jenkins and I have been searching around but I couldn't find what I was looking for.
I'd like to know how to run docker command in Jenkins (Build - Execute Shell):
Example: docker run hello-world
I have set Docker Installation for "Install latest from docker.io" in Jenkins Configure System and also have installed several Docker plugins. However, it still didn't work.
Can anyone help me point out what else should I check or set?
John
Upvotes: 5
Views: 18805
Reputation: 1602
I came across another generic solution. Since I'm not expert creating a Jenkins-Plugin out of this, here the manual steps:
Now you can use docker command from any script or command line. The changes will persist an image update.
Upvotes: 1
Reputation: 77971
One of the following plugins should work fine:
I normally run my builds on slave nodes that have docker pre-installed.
Upvotes: 4