How to setup Jenkins with Docker
Here is an easy way to setup Jenkins with Docker
- Run the following commands in your terminal
1docker pull jenkins/jenkins:lts 2docker run --detach --publish 8080:8080 --volume 3jenkins_home:/var/jenkins_home --name jenkins jenkins/jenkins:lts 4docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
The above command will generate a password. Copy said password
localhost:8080and paste in the password
Setup your user account and install suggested plugins.