-
Step 1: First add the key to your system
sudo curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee
/usr/share/keyrings/jenkins-keyring.asc > /dev/null -
Step 2: Add a Jenkins apt repository entry
sudo 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 -
Step 3: Update your local package index
sudo apt-get update
-
Step 4: Install Java
sudo apt-get install fontconfig openjdk-11-jre
-
Step 5: Install Jenkins
sudo apt-get install jenkins
jenkins --version
-
Step 1: Enable the Jenkins service to start
sudo systemctl enable jenkins
-
Step 2: Start the Jenkins service
sudo systemctl start jenkins.
-
Step 3: Check the status of the Jenkins service
sudo systemctl status jenkins
-
Step 1: Browse to http://:8080
/var/lib/jenkins/secrets/initialAdminPassword
will be displayed
-
Step 2: Go back to terminal and type cmd
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
copy the password displayed
-
Step 3: Go back to the browser and paste the password
and begin Jenkins installation
-
Step 1: Update your local package index
sudo apt-get update
-
Step 2: Install Docker
sudo apt install docker.io -y
/var/run/docker.sock: connect: permission denied
sudo chmod 777 /var/run/docker.sock
docker run hello-world
docker rm `docker ps -aq` -f
docker build -t demo .
docker tag demo sauravssr/nginx:httpd
docker run -d -p 80:80 sauravssr/nginx:httpd
docker ps
DockerHub : https://hub.docker.com/repository/docker/sauravssr/nginx
GitHub : https://github.com/SauravSSR/Project2.git