Run Jenkins in a Docker container — part 2 — socat

Guide for developers to get up and running with Jenkins running in Docker (on Windows).

David Sugden
6 min readOct 13, 2020

--

This small series of guides will walk through three solutions for installing Jenkins in a Docker container on Windows, along with the configuration necessary to spin up dynamic build slaves also using Docker containers.

Running locally on a personal device is perfect for individual users, freelancers, or developers looking to do local Jenkinsfile or Shared Library development and testing before pushing to a central CI/CD platform.

“You said three solutions?” Yes — this article demonstrates using socat (further reading at socat). Part 1 was using Docker-in-Docker and Part 3 is to run the Jenkins container as root user. Jump to those articles below.

--

--