Category: Docker, Jenkins, github, automation

After 2 weeks of working with Docker, GitHub, and Jenkins, I have tried to create a DevOps assembly line based on the following situation:JOB Pull the Github repository automatically when some developers push the repository to Github. First of all, we are assuming that Docker, Git, and Jenkins with the Git Plugin are installed in the system.

To download the image to our local machine, we have to run the following command from the Command Line: docker pull centos

To create the custom image, we need to create an empty file named Dockerfile anywhere in our host machine. The contents of the Dockerfile will be as follows: After making the Dockerfile we need to build it to create our image using: docker build -t apache:v1 .

Related Articles