Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

I am new to Jenkins. I want a way to integrate my Jenkins and Docker. What is the difference between docker Jenkins plugin and Jenkins pipeline with docker?

I have read both this

https://wiki.jenkins.io/plugins/servlet/mobile?contentId=71434989#content/view/71434989

https://jenkins.io/doc/book/pipeline/docker/

I feel like both approaches do the same thing running Jenkins slaves /node on a docker container, but I am not sure.

1 Answer

+1 vote
by (50.2k points)

The first link is about using docker commands in your Jenkins job to build your software. For example, your tools are inside docker containers and you want to run docker run --it maven:latest build against your code. It is normally a single step in the build job. The second link is about running a Jenkins agent as a docker container and running tools inside the container against your code. Here you will run a Jenkins agent, that will get the job definition from the Jenkins master and the execute the job's steps, i.e. more than one step also while being contained.

Browse Categories

...