title: Docker on Windows: failed: container_linux.go:344: starting container process caused "exec: \"./gradlew\": stat ./gradlew: no such file or directory"
body: <p>Here's the Original Command after initial solution search on web. I tried various combinations of using the slash (/) in vain:</p>
  
  <pre><code>winpty docker run --privileged --rm -it -v '//c//temp//git//distributions//cache://root//.gradle' --mount type=bind,source=//c//temp//git//distributions,target=//distdestiny_server.in.systems.com/x86/p83-buildenv './gradlew'
  C:/Program Files/Docker Toolbox/docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"./gradlew\": stat ./gradlew: no such file or directory": unknown.
  </code></pre>
  
  <p>After further search on web, I used bind-mounts and propogation options with various combinations, but ended up with this error:</p>
  
  <pre><code>winpty docker run --privileged --rm -it --mount type=bind,source=//c//temp//git//distributions//cache,target=//root//.gradle --mount type=bind,source=//c//temp//git//distributions,target=/dist,bind-propagation=shared destiny_server.in.systems.com/x86/p83-buildenv './gradlew'
  C:/Program Files/Docker Toolbox/docker.exe: Error response from daemon: linux mounts: path /c/temp/git/distributions is mounted on / but it is not a shared mount.
  </code></pre>
  
  <p>Another option I came across is MountFlags. However, the docker documentation only mentions it but doesn't say where to specify it. I couldn't find a way to specify it on the cmd. lines. I find references on the web to some files such as Dockerfile, docer.service, etc. However, I am unable to find any of these files on my system. Is it necessary that I should create swarm to get these files? The only last option I have is to use MountFlags but don't know how and where to specify it. </p>
  
  <p>Docker details: I have just now upgraded docker Client from 17.07.0-ce to 18.03.0-ce on my desktop as I type this content. Still I have the same issue reported. </p>
  
  <p>From Docker Quickstart Terminal: </p>
  
  <pre>$ docker version
  Client:
   Version:       18.03.0-ce
   API version:   1.37
   Go version:    go1.9.4
   Git commit:    0520e24302
   Built: Fri Mar 23 08:31:36 2018
   OS/Arch:       windows/amd64
   Experimental:  false
   Orchestrator:  swarm
  
  Server: Docker Engine - Community
   Engine:
    Version:      18.09.3
    API version:  1.39 (minimum version 1.12)
    Go version:   go1.10.8
    Git commit:   774a1f4
    Built:        Thu Feb 28 06:40:51 2019
    OS/Arch:      linux/amd64
    Experimental: false
  </pre>
  
  <p>Any help in this regard is much helpful. Thanks.</p>