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.
 

740 B

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.