Valentine's Day for Jenkins

Using Docker - No plugins required Last time I investigated using Docker inside the “master” container. It was pretty cool, but it was inconvenient when directories needed to be mounted to the containers. I intend to continue investigating the Docker plugins, but I felt like Jenkins needed some company for Valentines Day. Jenkins JNLP Slaves as Docker Containers The goal is to add a “Normal” Jenkins slave node that can connect to the master in the typical fashion.

Brothers of Jenkins

Avoid Docker-in-Docker Using Docker-in-Docker for your CI or testing environment? Think twice. by @jpetazzo explains why the DinD approach is bad for CI, and how using an alternative approach will allow the docker container to create sibling containers rather than child containers. Modifying my Docker setup I need to install docker into in a layer on top of the standard Jenkins image. @mjuuso has already demonstrated this in getintodevops/jenkins-withdocker and there is an associated blog post (The simple way to run Docker-in-Docker for CI).

Hiring a Ephemeral Butler

Clean up, before I get messy I have been running a lot of different docker containers, and often forgetting to use --rm. So I pruned my system: docker system --prune as recommended by this answer on StackOverfow. Starting Simple I followed the steps outlined on jenkinsci. I used the command below to get the password from the master container I just started. docker exec -it $(docker container ls -l --format "{{.