Follow the given steps to update the Docker settings inside Jenkins:
- From the Jenkins dashboard, click on Manage Jenkins | Configure System.
- Scroll all the way down to the Cloud section.
- Under the Cloud section, click on the Add Docker Template button and choose Docker Template.
- You will be presented with a lot of settings to configure (see the following screenshot). However, to keep this demonstration simple, let us stick to the important settings.
- Under the Docker Image field, enter the name of the Docker image that we created earlier. In my case, it is performance-test-agent-0.1.
- Under the Labels field, add a label. The Docker container will be recognized, using this label by your Jenkins pipeline. ...