-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
jenkins/jenkins:2.219 image
kubernetes v1.17.2
Plugin version 1.23.2
Windows Server Core 2019 10.0.17763 N/A Build 17763
docker version 19.03.5
In a windows pod template, add a host path volume, and specify a net pipe for host and mount paths. Example: \\.\pipe\docker_engine
The generated pod yaml will convert the backslashes to forward slashes, and Kubernetes will change the mount path to: //./pipe/docker_engine
Kubernetes pod fails to create container with the following:
Error: Error response from daemon: invalid volume specification: '\\.\pipe\docker_engine:c://./pipe/docker_engine'
Workaround for this is to use the following override yaml in the pod template:
spec: volumes: - name: docker-pipe hostPath: path: \\.\pipe\docker_engine containers: - name: jnlp volumeMounts: - name: docker-pipe mountPath: \\.\pipe\docker_engine