title: How to use --volume option with Docker Toolbox on Windows?
body: <p>How can I share a folder between my Windows files and a docker container, by mounting a volume with simple <code>--volume</code> command using Docker Toolbox on?</p>
  
  <p>I'm using "Docker Quickstart Terminal" and when I try this:</p>
  
  <pre><code>winpty docker run -it --rm --volume /C/Users/myuser:/myuser ubuntu
  </code></pre>
  
  <p>I have this error:</p>
  
  <pre><code>Invalid value "C:\\Users\\myuser\\:\\myuser" for flag --volume: bad mount mode specified : \myuser
  See 'docker run --help'.
  </code></pre>
  
  <p>Following <a href="https://superuser.com/a/907953/136024">this</a>, I also tried</p>
  
  <pre><code>winpty docker run -it --rm --volume "//C/Users/myuser:/myuser" ubuntu
  </code></pre>
  
  <p>and got</p>
  
  <pre><code>Invalid value "\\\\C:\\Users\\myuser\\:\\myuser" for flag --volume: \myuser is not an absolute path
  See 'docker run --help'.
  </code></pre>