Jenkins and Docker

This site is the new docs site currently being tested. For the actual docs in use please go to https://www.jenkins.io/doc.

Combining Jenkins and Docker together can bring improved speed and consistency to your automation tasks, which is why we’ve collected some helpful resources on this page to get you started!

What’s Docker?

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux.*

— Wikipedia

What this offers to Jenkins users is a means to isolate different jobs from one another, quickly clean a job’s workspace or even dynamically deploy or schedule jobs with Docker containers to increase resource utilization and efficiency.

Resources

Docker plugins for Jenkins
Docker plugin

dynamically provision agents with Docker

Docker Pipeline plugin

build and use Docker containers in Pipelines

Kubernetes plugin

dynamically allocate and schedule Docker agents on a Kubernetes cluster

Docker build step plugin

add Docker commands as build steps

CloudBees Docker Hub Notification plugin

allows Jenkins to receive webhooks from hub.docker.com to drive pipelines based on Docker in Jenkins