Saturday, May 2, 2020

Docker Jenkins Integration | Building Docker Images using Jenkins | How to automate Docker Images creation using Jenkins

Every time developer makes code changes, you would want to Jenkins to automate Docker images creation and pushing into Docker registry. Let us see how to do this.

Pre-requistes:
Jenkins is up and running
Docker is installed in Jenkins machine. Click here to learn how to install Docker. 

Docker plug-in installed in Jenkins.
Docker pipeline plug-in installed in Jenkins.

Steps:

Add jenkins user to Docker group
sudo usermod -a -G docker jenkins

Restart Jenkins service
sudo service jenkins restart

Reload system daemon files
sudo systemctl daemon-reload

Restart Docker service as well

sudo service docker stop
sudo service docker start
 
Watch the above steps in YouTube video

4 comments:

  1. this is what i am looking for, thank you sir

    ReplyDelete
  2. Why can't i run above commands in my mac?

    ReplyDelete
  3. How you'll integrate if Docker is installed on different ubuntu VM?

    ReplyDelete

Install kubectl on Mac OS | How to install kubectl in MAC OS

Kubernetes uses a command line utility called  kubectl  for communicating with the cluster API server. It is  tool for controlling  Kubernet...