So, you have setup a K8s Cluster to run Jenkins to build and deploy your code dynamically rather than having static Jenkins slaves, great! Now, within your pipeline for whatever reason you require Docker functionality to perform Docker related tasks. Sounds simple right? Well you’d be surprised how difficult this can be, and within this blog post we will demonstrate the various methods and the pros and cons of each method.

This blog post assumes you already have a Jenkins master in K8s already configured with the required plugins.

Implementation 1: Share the host socket

ECS

We transform organisations through #DevOps and #ContinuousDelivery by focusing on #PeopleProcessTools. Organiser of #DevOpsPlayground and #AHODevOps meetups.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store