Customize a Managed Controller Docker Image

1 minute readKnowledge base


  • We need some tools installed on the Docker image that we use for Managed controllers


You want to have a new customized Managed Controller Docker Image with some additional software installed. In order to do that, you need to create a new Docker image. Your starting point can be any docker file extending from cloudbees/cloudbees-core-mm Docker image. Once you have chosen the base image you have to create a Dockerfile for it. Please, review the sample below where we install monit, curl ,and htop

FROM cloudbees/cloudbees-core-mm:2.332.1.4
USER root
RUN dnf update -y && dnf install -y wget
USER 1000

When you have the Dockerfile you can push the image to your Docker registry. Once that you have done it, you could use it as Managed controller. For more details on how to add this images to CJOC , please review the links below.