mkdir jenkins_home
chown -R 1000:1000 jenkins_home (非常重要)
sudo docker run \
–privileged=true \
–restart=always \
-d -p 8007:8080 -p 50000:50000 \
-v $PWD/jenkins_home/:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):/usr/bin/docker \
-v $(which git):/usr/bin/git \
–name=jenkins jenkins/jenkins:2.164.1
转载请注明:SuperIT » docker安装jenkins