无法在Docker插件1.1.8的容器设置中映射卷(Windows路径)

时间:2019-10-08 08:35:08

标签: docker jenkins jenkins-plugins jenkins-docker

我无法在Docker插件1.1.8的容器设置中将X:驱动器映射到驱动器G:。

任何人都知道这有什么问题吗?谢谢。

X:驱动器是Docker主机(Windows Server 2019)上的远程SMB共享

这是我对Docker插件的设置 container settings of Docker plugin container settings of Docker plugin

这是我运行的用于映射音量的命令。我想使用docker插件动态设置构建代理。

docker run -d --name agent-00 --restart=always -v X:\:G: -e JENKINS_MASTER_HOST=docker -e JENKINS_AGENT_ID=WIN_00 -e JENKINS_SECRET=xxxxx jenkins-agent:latest 

这是错误消息:

Note: Disabled 29 sec ago due to error. Will re-enable in 4 min 30 sec.
Reason: Template provisioning failed.

java.lang.IllegalArgumentException  at com.github.dockerjava.api.model.Bind.parse(Bind.java:130)Caused: java.lang.IllegalArgumentException: Error parsing Bind 'X:\:G:\'    at com.github.dockerjava.api.model.Bind.parse(Bind.java:134)    at com.nirima.jenkins.plugins.docker.DockerTemplateBase.fillContainerConfig(DockerTemplateBase.java:579)    at com.nirima.jenkins.plugins.docker.DockerTemplate.fillContainerConfig(DockerTemplate.java:224)    at com.nirima.jenkins.plugins.docker.DockerTemplate.doProvisionNode(DockerTemplate.java:547)    at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:526)  at com.nirima.jenkins.plugins.docker.DockerCloud$1.run(DockerCloud.java:364)    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)  at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  at java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案