jenkins setup using ec2 & docker in 2 min

jenkins setup using ec2 & docker in 2 min

Table of contents

No heading

No headings in the article.

  1. Simply spin a ec 2 instance using ubuntu as operating system

  1. 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.

  2. 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

  3. then go the instance simply pull the docker image of latest jenkins images

    sudo docker pull jenkins/jenkins

  4. 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