Docker – Continuous Integration

Docker Continuous Integration has many Integrations tools, which also include the popular CI tool known as Jenkins. Within Jenkins, you have plugins available that can be used to work with containers. So let’s quickly look at a Docker plugin available for the Jenkins tool.

Let’s go step by step and see what’s available in Jenkins for Docker containers.

Step1 − Go to your Jenkins dashboard and click Manage Jenkins.

Step2 − Go to Manage Plugins.

Step3 − Search for Docker plugins. Choose the Docker plugin and click the Install without restart button.

Step 4 − Once the installation is completed, go to your job in the Jenkins dashboard. In our example, we have a job called Demo.

Step 5 − In the job, when you go to the Build step, you can now see the option to start and stop containers.

Step 6 − As a simple example, you can choose the further option to stop containers when the build is completed. Then, click the Save button.

Now, just run your job in Jenkins. In the Console output, you will now be able to see that the command to Stop All containers has run.

In this guide, we learned about Docker – Continuous Integration. To know more Click here.

This Post Has 2 Comments

Leave a Reply