title: Can I limit memory & cpu used per docker container?
body: <p>I was wondering if there's a way to limit or cap the max memory &amp; processing power used by docker containers on host level. I'm under the impression that the memory options only add provided memory at container launch, but do not limit it permanently.</p>
  
  <p>As I use containers with dotnet apps (hosted dlls), mono'd/wine'd exes, java apps &amp; linux deamons, it would be great if I could make sure that, for instance, continues java memory allocation would not make other containers crash. I'm using java memory options (xms, xmx) for these containers now, and am doing similar to the other containers. I'm lacking a docker based system to manage and monitor cpu &amp; memory. 
  Also, percentile scaling for memory &amp; cpu would be useful, allowing one container to grab a lot of processing power &amp; memory at peak moments. I can monitor this on host process level, not on docker level.</p>
  
  <p>And I'm not even talking about a multi-host setup (swarm, rancher, kubernetes) yet.
  Or is my question to general?</p>