Implementation of Jenkins, Right from Installation, Configuration and Deployment of multiple applications.
Java (JDK)
Install Java:
sudo apt update sudo apt install openjdk-11-jre
java -version
After you login to Jenkins, - Run the command to copy the Jenkins Admin Password - sudo cat /var/lib/jenkins/secrets/initialAdminPassword - Enter the Administrator password
Log in to Jenkins. Go to Manage Jenkins > Manage Plugins. In the Available tab, search for "Docker Pipeline". Select the plugin and click the Install button. Restart Jenkins after the plugin is installed.
Wait for the Jenkins to be restarted.
Run the below command to Install Docker
sudo apt update sudo apt install docker.io
sudo su - usermod -aG docker jenkins usermod -aG docker ubuntu systemctl restart docker
Once you are done with the above steps, it is better to restart Jenkins.
The docker agent configuration is now successful.