docker运行jenkins
##pull镜像docker pull jenkins##run 为了方便安装插件,因此将jenkins_home目录映射出来
docker run -p 8080:8080 -p 50000:50000 -v /home/docker/jenkins:/var/jenkins_home jenkins报错:
touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?需要修改下目录权限, 因为当映射本地数据卷时,/home/docker/jenkins目录的拥有者为root用户,而容器中jenkins user的uid为1000
sudo chown -R 1000:1000 /home/docker/jenkins
##初始化 http://192.168.99.100:8080/
安装推荐的插件
或者自己选择要安装的plugin
进入jenkins
##doc
支持分享
页:
[1]