In the docker run jenkins
It is a mirror image version apline: lts-alpine, and set the correct time zone.
docker run --name jenkins_master -d \
-p 8081:8080 -p 50000:50000 \
-v jenkins_home:/var/jenkins_home \
-e Java_OPTS=-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai \
jenkins/jenkins:lts-alpine
Refer to: https: //github.com/jenkinsci/docker/blob/master/README.md
addition: jenkins_home the docker default directory, such as: / var / lib / docker / Volumes / jenkins_home,
Workspace directory directory also next, pull through source code that will be placed under the management workspace, you can publish the source code by scripting or other means, or constructed docker image and so on.
Jenkins plug-in error to solve problems.
In the "System Management" -> "Plugin Manager" -> "Advanced" -> "Upgrade Site" changed the url: http: //updates.jenkins.io/update-center.json
then install the necessary common plug-ins, E.g:
Build Timeout
Publish Over SSH
Deploy to container Plugin
Docker Pipeline
Email Extension Plugin
Gitlab Authentication plugin
Gitlab Hook Plugin
GitLab Plugin
HTTP POST Plugin
Publish Over SSH
SSH plugin