- Docker - Working of Kubernetes
- Docker - Kubernetes Architecture
- Docker - Continuous Integration
- Docker - Compose
- Docker - Logging
- Docker - Cloud
- Docker - Setting ASP.Net
- Docker - Toolbox
- Docker - Setting NGINX
- Docker - Setting MongoDB
- Docker - Setting Node.js
- Docker - Networking
- Docker - Storage
- Docker - Container Linking
- Docker - Instruction Commands
- Building a Web Server Docker File
- Docker - Private Registries
- Docker - Managing Ports
- Docker - Public Repositories
- Docker - Building Files
- Docker - File
- Docker - Containers & Shells
- Docker - Configuring
- Docker - Container & Hosts
- Docker - Architecture
- Docker - Working With Containers
- Docker - Containers
- Docker - Images
- Docker - Hub
- Docker - Installation
- Docker - Installing Docker on Linux
- Docker - Overview
- Docker - Home
Docker Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Docker - Continuous Integration
Docker has integrations with many Continuous Integrations tools, which also includes the popular CI tool known as Jenkins. Within Jenkins, you have plugins available which 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.
Step 1 − Go to your Jenkins dashboard and cpck Manage Jenkins.
Step 2 − Go to Manage Plugins.
Step 3 − Search for Docker plugins. Choose the Docker plugin and cpck 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, cpck 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.
Advertisements