0 votes
in DevOps by
How to install Jenkins via Docker?

2 Answers

0 votes
by

The steps are:

Open up a terminal window.

Download the jenkinsci/blueocean image & run it as a container in Docker using the following docker run command:( https://docs.docker.com/engine/reference/commandline/run/)

docker run \  -u root \  –rm \  -d \  -p 8080:8080 \  -p 50000:50000 \  -v jenkins-data:/var/jenkins_home \  -v /var/run/docker.sock:/var/run/docker.sock \  jenkinsci/blueocean

Proceed to the Post-installation setup wizard (https://jenkins.io/doc/book/installing/#setup-wizard)

Accessing the Jenkins/Blue Ocean Docker container docker exec -it jenkins-blueocean bash

Accessing the Jenkins console log through Docker logsdocker logs <docker-container-name>Accessing the Jenkins home directorydocker exec -it <docker-container-name> bash

0 votes
by

The steps are:

  1. Open up a terminal window.
  2. Download the jenkinsci/blueocean image & run it as a container in Docker using the following docker run command:( https://docs.docker.com/engine/reference/commandline/run/)
  3. docker run \  -u root \  –rm \  -d \  -p 8080:8080 \  -p 50000:50000 \  -v jenkins-data:/var/jenkins_home \  -v /var/run/docker.sock:/var/run/docker.sock \  jenkinsci/blueocean
  4. Proceed to the Post-installation setup wizard (https://jenkins.io/doc/book/installing/#setup-wizard)
  5. Accessing the Jenkins/Blue Ocean Docker container docker exec -it jenkins-blueocean bash
  6. Accessing the Jenkins console log through Docker logsdocker logs <docker-container-name>Accessing the Jenkins home directorydocker exec -it <docker-container-name> bash

Related questions

0 votes
asked Oct 21, 2019 in Jenkins by rajeshsharma
0 votes
asked Apr 28, 2021 in Jenkins by Robindeniel
...