Docker安装Jenkins
机器上要有 jdk,服务器可以执行如下命令安装
yum install -y java-1.8.0-openjdk.x86_64
jenkins 开始
docker search jenkins
docker pull jenkins/jenkins:2.414.2
docker run -d -u root -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home -v /etc/localtime:/etc/localtime --name jenkins jenkins/jenkins:2.414.2
docker start jenkins
完事之后,通过log来看一下密码
docker logs 容器ID