配置信息
useradd jenkins (id需要为1000)
mkdir /data/jenkins/data (jenins的数据目录)
chown -R jenkins:jenkins /data/jenkins
docker run -d -p 8080:8080 -p 50000:50000 --name jenkins_test --restart always -v /data/jenkins/data:/var/jenkins_home -v /etc/localtime:/etc/localtime jenkins/jenkins:lts
key查看
cat /data/jenkins/data/secrets/initialAdminPassword
参考 https://www.cnblogs.com/dyd168/p/14394549.html