How to install Tools in Linux Operating System

How to install docker on Ubuntu

To, install docker on Ubuntu, just run the following commands,

  1. Update your system,
sudo apt-get update -y
  1. Install docker,
sudo apt-get install docker.io -y

  1. Start docker,
sudo systemctl start docker

Now, you have successfully installed docker on Ubuntu

Let's check how to install Jenkins on Ubuntu

How to install Jenkins on Ubuntu

  1. Update your Ubuntu Server,
sudo apt update -y
  1. Install Java on your Ubuntu server, because Jenkins uses java in the backend, so java is the pre-requisite for Jenkins installation.
sudo apt install openjdk-11-jre -y

Check java version,

sudo java -version

Now, add Jenkins key,

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null

Now, again update your system,

sudo apt-get update -y

Install Jenkins,

sudo apt-get install jenkins -y

Go to security groups of the server and add inbound rule for port 8080 and If you see the below page on port 8080, then you have successfully installed jenkins on ubuntu.