docker pull jenkins/jenkins:lts-centos7-jdk8
2.docker-compose.yml
version: '3'
services:jenkins:image: jenkins/jenkins:lts-centos7-jdk8container_name: my-jenkinsports:- "8080:8080" # 映射 Jenkins Web 界面端口volumes:- jenkins_home:/var/jenkins_homevolumes:jenkins_home:
3.访问界面
http://192.168.227.128:8080/
安装完成长这样
安装jenkins插件: