Table of contents
No headings in the article.
- Simply spin a ec 2 instance using ubuntu as operating system
connect to the instance and simply use the following command
1.sudo apt-get update
2.sudo apt install docker.io
this commands will install docker on your system.
then go to the security group of your ec2 instance
go to the inbound rules and edit it add new rule by choosing the following and save it.
and using the public ip of the instance simply add the port :8080
then go the instance simply pull the docker image of latest jenkins images
sudo docker pull jenkins/jenkins
then run the docker image on port 8080 by the command
sudo docker run -d -p 8080:8080 docker.io/jenkins/jenkins:latest
the docker image would be up and running on public ip of your instance.
thanks for reading hopes its help
and make sure to follow