Error running `drone exec` on Windows 10

When running drone exec on my Windows 10 machine for a maven project, I’m immediately getting an error that doesn’t quite have enough information to debug effectively:

> drone exec --local
Running Matrix job #0
500 Internal Server Error: Invalid volume spec "\\drone\\src": Invalid volume destination
path: '\drone\src' mount path must be absolute.

Even the Docker logs don’t really give me anything to work with:

  • import mysql data to kubernetes pod
  • “nginx-proxy” docker image socket volume not mounted
  • docker exec does not open bash
  • Use toaster to view yocto builds
  • Share folder from docker container to host
  • Can't configure locale in Docker image
  • [10:46:01.794][ApiProxy       ][Info   ] proxy >> GET /v1.15/images/busybox:latest/json
    [10:46:01.802][ApiProxy       ][Info   ] Dial Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
    [10:46:01.808][ApiProxy       ][Info   ] Successfully dialed Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
    [10:46:01.814][ApiProxy       ][Info   ] proxy << GET /v1.15/images/busybox:latest/json
    [10:46:01.820][ApiProxy       ][Info   ] proxy >> POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI [rewriteBinds]
    [10:46:01.832][ApiProxy       ][Info   ] proxy >> POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI
    [10:46:01.839][ApiProxy       ][Info   ] Dial Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
    [10:46:01.849][ApiProxy       ][Info   ] Successfully dialed Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
    [10:46:01.855][ApiProxy       ][Info   ] proxy << POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI
    

    I haven’t done anything fancy with the drone configuration, and the only hint of what might be wrong with this is that Drone exec can’t handle Windows paths, which seems unlikely considering the complete lack of relevant drone-cli issues.

    pipeline:
      build:
        image: maven:3.3.9-jdk-8-alpine
        commands: [ "mvn clean package" ]
    

    I’m looking for two things:

    1. An option reference for .drone.yml to the level of docker-compose.yml. The official documentation doesn’t appear to have this anywhere, and seems to expect you to rely on the pseudo-tutorial examples.
    2. Some idea on how I can fix the error that’s stopping me from making the best of the drone exec functionality and get on with actually using the tools, rather than wasting time fighting against them.

    Addendum

    Fiddling with the workspace.base attribute in the config lets me change what it’s complaining about, and using a machine-specific absolute path (so useless) gives me a new error. Inputs and results:

    workspace:
      base: /
    

    Invalid volume spec "/": Invalid specification: destination can't be '/' in '/'

    workspace:
      base: C:\code\project
    

    C: drive is not shared. Please share it in Docker for Windows Settings NOTE: It is shared.

  • Docker error response from daemon no such file or directory while docker load
  • How do I deploy this docker app on digital ocean?
  • Build container found dead before completing the build. Build container died because it was out of memory, or the Docker image was missing glibc
  • Provider docker not found - Vagrant
  • Modprobe error while installing Docker on Ubuntu 14.04
  • Docker-compose does not install or run properly on boot2docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.