docker安装Jenkins
1、拉取jenkins
docker pull jenkins/jenkins
2、配置jenkins路径
mkdir -p /data/jenkins_home
3、启动jenkins
docker run -d -uroot -p 8081:8080 -p 50000:50000 --name jenkins --restart=always -v /data/jenkins_home:/var/jenkins_home -v /etc/localtime:/etc/localtime jenkins/jenkins
4、配置jenkins
#进入容器 docker exec -it jenkins bash
#查看管理员密码
cat /var/jenkins_home/secrets/initialAdminPasswor
#修改插件下载镜像地址
#安装插件