You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Michael 3b1d7b2c30
Update README.md
4 years ago
.github Initial commit 4 years ago
.gitignore Initial commit 4 years ago
01_04.md Add commands for docker install 4 years ago
CONTRIBUTING.md Initial commit 4 years ago
LICENSE Initial commit 4 years ago
NOTICE Initial commit 4 years ago
README.md Update README.md 4 years ago

README.md

Learning Jenkins, 01-04: Install Jenkins as a Container

Prerequisites

You will need to have Docker installed on your local system.

Installation

In a terminal, run the following commands:

docker --version

docker pull jenkins/jenkins:lts

docker run --detach --publish 8080:8080 --volume jenkins_home:/var/jenkins_home --name jenkins jenkins/jenkins:lts

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Using the Initial Admin Password

Run the following command and copy the output:

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Open a browser to localhost:8080 and enter the initial admin password.