Invalid bind mount spec running docker exec on windows
I'm using Docker for windows, and trying to get gitlab-runner working. Looks like the volume specification has been reversed for windows:
C:\Users\jnaous\candidguru\candidly> gitlab-ci-multi-runner-windows-amd64.exe --debug exec docker --docker-host localhost:2375 --docker-privileged build
Runtime platform arch=amd64 os=windows revision=01b3ea1 version=1.6.0
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-ci-multi-runner 1.6.0 (01b3ea1)
Shell configuration: environment: []
dockercommand:
- sh
- -c
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash \nelif [ -x /usr/bin/bash
]; then\n\texec /usr/bin/bash \nelif [ -x /bin/bash ]; then\n\texec /bin/bash \nelif
[ -x /usr/local/bin/sh ]; then\n\texec /usr/local/bin/sh \nelif [ -x /usr/bin/sh
]; then\n\texec /usr/bin/sh \nelif [ -x /bin/sh ]; then\n\texec /bin/sh \nelse\n\techo
shell not found\n\texit 1\nfi\n\n"
command: bash
arguments: []
passfile: false
extension: ""
build=1 project=1
Using Docker executor with image /candidguru/docker-builder:0.6.1 ...
Applying docker.Client transport fix: &{false 0xc0821d2fc0 <nil> 0xc0821e1400 localhost:2375 0xc082170100 0xc082115f20 [1 18] [] [] <nil>} host=localhost:2375
Creating build volume... build=1 project=1
Looking for prebuilt image gitlab-runner-prebuilt-x86_64:01b3ea1 ... build=1 project=1
Starting cache container 52d09cdfb6543271a247ddb4680d5b51bdb72c0fbbe84205ef2efd8104901df6 ... build=1 project=1
Waiting for cache container 52d09cdfb6543271a247ddb4680d5b51bdb72c0fbbe84205ef2efd8104901df6 ... build=1 project=1
Creating services... build=1 project=1
Looking for image docker:dind ... build=1 project=1
Pulling docker image docker:dind ...
json: cannot unmarshal string into Go value of type docker.dockerConfig build=1 project=1
Removed container runner--project-1-concurrent-0-docker with No such container: runner--project-1-concurrent-0-docker build=1 project=1
Starting service docker:dind ...
Creating service container runner--project-1-concurrent-0-docker ... build=1 project=1
Starting service container 65b1e3201cde0141bf1fe0f89b0f3918cad308e1170adf062f59da87274b9371 ... build=1 project=1
Created service docker:dind as 65b1e3201cde0141bf1fe0f89b0f3918cad308e1170adf062f59da87274b9371 build=1 project=1
Waiting for services to be up and running...
Looking for prebuilt image gitlab-runner-prebuilt-x86_64:01b3ea1 ... build=1 project=1
Waiting for service container runner--project-1-concurrent-0-docker to be up and running... build=1 project=1
Removed container d3dfb5c3f3f45d6d038a881ce6d4904595f49ec980681f2aaa5007c63286972d with <nil> build=1 project=1
Creating user-defined volumes... build=1 project=1
Using host-based C for /builds/project-1/\Users\jnaous\candidguru\candidly:C:\Users\jnaous\candidguru\candidly:ro ... build=1 project=1
Starting Docker command... build=1 project=1
Looking for prebuilt image gitlab-runner-prebuilt-x86_64:01b3ea1 ... build=1 project=1
Looking for image sha256:fb2704826307d685a39a3564512a40887800be11d5d86972c7bc9a7e36cf9ba0 ... build=1 project=1
Removed container runner--project-1-concurrent-0-predefined with No such container: runner--project-1-concurrent-0-predefined build=1 project=1
Creating container runner--project-1-concurrent-0-predefined ... build=1 project=1
Removed container 52d09cdfb6543271a247ddb4680d5b51bdb72c0fbbe84205ef2efd8104901df6 with <nil> build=1 project=1
Removed container 65b1e3201cde0141bf1fe0f89b0f3918cad308e1170adf062f59da87274b9371 with <nil> build=1 project=1
Closed all idle connections for docker.Client: &{false 0xc0821d3080 <nil> 0x39ffb80 localhost:2375 0xc082170100 0xc082115f20 [1 18] [1 24] [1 18] <nil>}
ERROR: Preparation failed: API error (500): Invalid bind mount spec "/C/builds/project-1/Users/jnaous/candidguru/candidly:C:\\Users\\jnaous\\candidguru\\candidly:ro": Invalid volume specification: '/C/builds/project-1/Users/jnaous/candidguru/candidly:C:\Users\jnaous\candidguru\candidly:ro'