title: Docker does not set the RAM via docker run command
body: <p>The command that I run is</p>
  
  <pre><code>docker run --rm --cpuset-cpus="0-3" --memory="8g" -v ~/IdeaProjects:/sources --name dsetup -it harit/akka-dev-setup:1.0
  </code></pre>
  
  <p>When I do <code>htop</code> inside my container I see that it still uses <code>2g</code>
  <a href="https://i.stack.imgur.com/l579A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l579A.png" alt="enter image description here"></a></p>
  
  <p>I am sure, I am wrong, but not sure where ;-)</p>