Jenkins Views 5

Running Jenkins in Docker

Running Jenkins in Docker image 1

Running Jenkins in Docker


Prerequisites

  • Docker installed

Pulling the Docker image

 docker pull jenkins/jenkins

After you have pulled the Docker image, create a folder that Jenkins will mount from the host.
I created it at /data/jenkins.

 chmod 777 /data/jenkins

Then run the image.

 docker run --name jenkins -dit -p 8080:8080 -p 50000:50000 -v /data/jenkins:/var/jenkins_home jenkins/jenkins

The first time you open Jenkins, it asks you for a password. You can find that password in the logs.
 docker logs jenkins

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.