title: How to use mongodump command from Nodejs app container?
body: <p>I have a Node js app running in a docker container that depends on <code>mongo</code> container which uses the image <code>mongo</code> from docker hub. I want to make a rest API <code>GET: download/db</code>. When a get request hits I want it to download the dumped backup copy of database.</p>
  
  <p>For that, I used shell command </p>
  
  <p><code>mongodump --host localhost --uri mongodb://localhost:27017/db_name --gzip --out /tmp/backup-007434030202704722</code></p>
  
  <p>But it shows an error <code>/bin/sh: mongodump: not found</code>. I don't know what is the problem here. What might be the problem?</p>