安装安装jenkens报错not a directory on the Jenkins master (but perhaps it exists on some agents)

我配置jenkens的时候,在配置jdk和maven地址的时候,这里的地址填容器中的地址。比如下面这个语句  -v /usr/local/java/jdk1.8.0_181:/usr/local/jdk 下面就填 /usr/local/jdk

sudo docker run -d -u root --privileged --name jenkins -p 49003:8080 -v /opt/docker_jenkens:/var/jenkins_home -v /usr/local/java/apache-maven-3.3.9:/usr/local/maven -v /usr/local/java/jdk1.8.0_181:/usr/local/jdk -v /usr/local/java/node-v10.15.3-linux-x64:/usr/local/java/node-v10.15.3-linux-x64 -v /home/admin:/home/admin jenkins:latest

 

 

 

posted @ 2019-01-22 16:40  0苦夏0  阅读(12824)  评论(0编辑  收藏  举报