项目作者: bndynet

项目描述 :
Jenkins Docker image
高级语言: Shell
项目地址: git://github.com/bndynet/docker.jenkins.git
创建时间: 2017-10-11T08:54:48Z
项目社区:https://github.com/bndynet/docker.jenkins

开源协议:

下载


Jenkins Docker image" class="reference-link">Docker Jenkins Docker image

How to use this image

Get docker image

docker pull bndynet/jenkins

Start a container

Below will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume (recommended):

  1. docker run --name my-jenkins -p 8080:8080 -p 50000:50000 [-v /your/home:/var/jenkins_home] \
  2. -d \
  3. -v /var/run/docker.sock:/var/run/docker.sock \
  4. --restart unless-stopped \
  5. --user root \
  6. bndynet/jenkins

Run bash

docker exec -it my-jenkins bash

Misc

  • Initial Admin Password: /var/jenkins_home/secrets/initialAdminPassword

  • Forgot Password or Reset:

  1. Stop the Jenkins service
  2. Open the config.xml file
  3. Find this <useSecurity>true</useSecurity> and change it to <useSecurity>false</useSecurity>
  4. Start Jenkins service