title: Why docker container is consuming lot of memory?
body: <p>I am new to docker. I have a nodejs(sails.js) application. I have deployed it using docker. There is only one docker container running on my Ubuntu machine. </p>
  
  <p>When I tried to monitor the memory usage by my docker container using "docker stats" command, below is the stats I get (as shown in image)</p>
  
  <p><a href="https://i.stack.imgur.com/VbVeu.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/VbVeu.jpg" alt="docker stats"></a></p>
  
  <p>My question is, why this single docker container is eating lot of memory ~207MiB? In future if I want to increase the number of containers running per host, will it consume memory in this multiples? It doesn't seem to be feasible solution if I want to run 100 container of same app on my machine.  Is there any way to optimize memory consumption by docker containers? </p>
  
  <p>(When I run the same application without docker (sails lift / node app.js) it only consumes 80MB of memory.)</p>