title: docker --volume format for Windows
body: <p>I'm trying to take a shell script we use at work to set up our development environments and re-purpose it to work on my Windows environment via Git Bash.</p>
  <p>The way the containers are brought up in the shell script are as follows:</p>
  <pre><code>docker run \
  --detach \
  --name=server_container \
  --publish 80:80 \
  --volume=$PWD/var/www:/var/www \
  --volume=$PWD/var/log/apache2:/var/log/apache2 \
  --link=mysql_container:mysql_container \
  --link=redis_container:redis_container \
  web-server
  </code></pre>
  <p>When I run that as-is, it returns the following error message:</p>
  <pre><code>C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: invalid bind mount spec &quot;/C/Users/username/var/docker/environments/development/scripts/var/log/apache2;C:\\Program Files\\Git\\var\\log\\apache2&quot;: invalid volume specification: '/C/Users/username/var/docker/environments/development/scripts/var/log/apache2;C:\Program Files\Git\var\log\apache2': invalid mount config for type &quot;bind&quot;: invalid mount path: '\Program Files\Git\var\log\apache2' mount path must be absolute. See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
  </code></pre>
  <p>I did a bunch of googling and documentation reading, but I'm a little overwhelmed by Docker, and I think I got it wrong. I tried setting up the container as follows:</p>
  <pre><code>docker run \
  --detach \
  --name=server_container \
  --publish 80:80 \
  --volume=/c/users/username/var/www:/var/www \
  --volume=/c/users/username/var/log/apache2:/var/log/apache2 \
  --link=mysql_container:mysql_container \
  --link=redis_container:redis_container \
  web-server
  </code></pre>
  <p>It still errors out with a similar error message. If I remove the colon:/var/www it comes up, but it doesn't seem to map those directories properly, that is it doesn't know that <code>C:\users\username\var\www</code> = <code>/var/www</code></p>
  <p>I know I'm missing something painfully dumb here, but when I look at the documentation I just glaze over. Any help would be greatly appreciated.</p>