Docker – Continuous Integration
There are many Continuous Integrations tools that Docker integrates with, including Jenkins, which is popular. In Jenkins, you can use plugins to work with containers. So let’s check out the Docker plugin for Jenkins.
Taking a step-by-step approach, let’s see what Jenkins offers for Docker containers.
Step 1 − Click Manage Jenkins on your Jenkins dashboard.

Step 2 − Select Manage Plugins.

Step 3 − Select the Docker plugin and click the Install without restart button.

Step 4 − When the installation is done, go to your job in the Jenkins dashboard. We have a job called Demo.

Step 5 − When you go to the Build step, you can now start and stop containers.

Step 6 − Let’s say you want to stop containers when the build is done. Click Save.

Run your job in Jenkins and you’ll see that the Stop All containers command has been run in the Console output.
