title: Docker volume mount: "no such file or directory"
body: <p>I'm pretty new to Docker and trying to get my first (real) image up-and-running. I've written my Dockerfile:</p>
  
  <pre><code>WORKDIR /myapp
  VOLUME /myapp/configuration
  VOLUME /etc/asterisk
  VOLUME /usr/share/asterisk/sounds
  </code></pre>
  
  <p>So my container should start in <code>/myapp</code> and I should be able to mount external volumes to configure my app (<code>configuration</code>), Asterisk and its sounds.</p>
  
  <p>Though, when I start a container with my image:</p>
  
  <pre><code>docker run -it \
  --entrypoint /bin/bash myapp \
  -v $(pwd)/asterisk:/etc/asterisk \
  -v $(pwd)/configuration:/myapp/configuration \
  -v $(pwd)/asterisk/sounds:/usr/share/asterisk/sounds
  </code></pre>
  
  <p>It gives me the following error:</p>
  
  <pre><code>/bin/bash: /home/me/Docker/asterisk:/etc/asterisk: No such file or directory
  </code></pre>
  
  <p>I really don't understand why. I've verified it was not a line-ending issue (<code>CRLF</code> rather than expected <code>LF</code> for example), and it's not. I really don't know.</p>
  
  <p>If it counts, I'm running elementary OS Loki.</p>
  
  <p>Please suggest.</p>