title: How to use "bind mount" in Docker
body: <p>I got an error in logs after running this command:</p>
  <blockquote>
  <p>docker run -d -p 3000:80 --name feedback-app -v feedback:/app/feedback
  -v &quot;/WorkSpace/d/data-volumes-03-adj-node-code:/app&quot; -v /app/node_modules feedback-node:volumes</p>
  </blockquote>
  <p>The error is:</p>
  <blockquote>
  <p>internal/modules/cjs/loader.js:892   throw err;   ^</p>
  <p>Error: Cannot find module '/app/server.js'
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
  at Function.Module._load (internal/modules/cjs/loader.js:745:27)
  at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
  at internal/main/run_main_module.js:17:47 {   code: 'MODULE_NOT_FOUND',   requireStack: [] }</p>
  </blockquote>
  <p>How can I solve this problem?</p>
  <pre><code>My Dockerfile:
  
  FROM node:14
   
  WORKDIR /app
   
  COPY package.json .
   
  RUN npm install 
   
  COPY . .
   
  EXPOSE 80
   
  # VOLUME [&quot;/app/feedback&quot;]
   
  CMD [&quot;node&quot;, &quot;server.js&quot;]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Bmb9e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bmb9e.png" alt="workspace" /></a></p>
  <p><a href="https://i.stack.imgur.com/iTprS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iTprS.png" alt="docker settings general" /></a></p>
  <p><a href="https://i.stack.imgur.com/Z9rSt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z9rSt.png" alt="docker settings resources" /></a></p>
  <p><a href="https://i.stack.imgur.com/yryy2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yryy2.png" alt="docker settings engine" /></a></p>