Now we will tell Jenkins to use our custom Docker image to run containers as Jenkins build agents. Once more, click on the Manage Jenkins menu link. From the list of configuration groups, you will again click the link for the Configure System group. You will find the Cloud configuration near the bottom of the configuration options. Click on the Add a new cloud dropdown and select Docker:
The screen will update and you will have two new configuration groups: Docker Cloud details... and Docker Agent templates...:
Let's take care of the Docker Cloud details first. Click on that button ...