Running Jenkins on Docker container


In this article, we are going to talk about:

  1. Start and Stop Jenkins Container.
  2. Set Jenkins Home on Docker Volume and Host Machine.

Creating Jenkins Instance on a Docker Container

Navigate to DockerHub, this is online cloud repository. Docker Images are stored on this platform. Here you can find many public docker images, you can store your own image as well. Login/Signup to DockerHub and search for Jenkins Docker Image.

How to use this image? A brief from Jenkins Docker Hub page.

  • Configure Jenkins
  • Create a new job
  • Configure the job
  • Run the build
*************************************************************Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
This may also be found at: /var/jenkins_home/secrets/initialAdminPassword*************************************************************

Using Docker Volume

Instead of setting Jenkins Home, you can also set Docker Volume. Volume makes easy to share among the containers.


I hope this article was useful for you. This article demonstrates how you can quickly get a Jenkins server running using docker. Feel free to comment if you have questions or get stuck. If you ever need my help, you can write in comments sections. Also, you can contact me through my LinkedIn Profile.

Software Automation Testing expert with 9 years of work experience in diverse tools and technologies.