yalegria / devops-git-actions

0 stars 0 forks source link

Research on Having Jenkins Running on Docker. #22

Open yuriaru opened 2 years ago

Voxelghiest commented 2 years ago

How to Run a Jenkins Server from a Docker Image

  1. Access your shell terminal and make sure docker is installed on your device. You can confirm this by running
    docker --version.
  2. Pull the Jenkins docker image with the command docker pull jenkins/jenkins:lts-jdk11. You can change the docker tag to pull a different version if you want.
  3. Run the image by using docker run --name jenkins-server -p 8080:8080 jenkins/jenkins:lts-jdk11. You can modify the name given to the container or the port that Jenkins gets mapped to, if you prefer.
  4. You can now follow from step 4 of #17 to finish the server setup process.