title: Docker --mount throws: executable file not found in $PATH"
body: <p>Running:</p>
  
  <pre><code>docker run 6740371b6542 --mount
  docker run 6740371b6542 --mount source=aws,target=/root/.aws/,readonly
  </code></pre>
  
  <p>both produce the same error:</p>
  
  <pre><code>container_linux.go:265: starting container process caused "exec: \"--mount\": executable file not found in $PATH"
  docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"--mount\": executable file not found in $PATH".
  </code></pre>
  
  <p>Can someone explain how to mount a file/folder from the host into the docker container? It seems <em>--mount</em> is the current/latest <a href="https://docs.docker.com/engine/admin/volumes/volumes/#choose-the--v-or-mount-flag" rel="nofollow noreferrer">recommended way</a> to do it.</p>