This article gives a walk through on the steps to set docker container as a Jenkins agent.
Photo by Luca Bravo on Unsplash
What if you are building a huge project which involves multiple scripts, multiple environment variables, multiple actions which has to be performed on a container as we are running a Jenkins job.
Yes, we can run Jenkins job with docker container as its agent.