jekins
启动
java -jar jenkins.war
workspace 目录 /root/.jenkins/workspace
使用 docker
没有目录权限的问题
https://github.com/jenkinsci/docker/issues/177
即便在阿里云里面设置为 rw
还需要另外执行
sudo chown 1000 volume_dir
This is the same as #155 and documented in README
This will store the jenkins data in /your/home on the host. Ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid
- or use -u some_other_user parameter with docker run.
You must set the correct permissions in the host before you mount volumes sudo chown 1000 volume_dir
An alternative is discussed in #158