title: How to check the number of cores used by docker container?
body: <p>I have been working with Docker for a while now, I have installed docker and launched a container using </p>
  
  <pre><code>docker run -it --cpuset-cpus=0 ubuntu
  </code></pre>
  
  <p>When I log into the docker console and run </p>
  
  <pre><code>grep processor /proc/cpuinfo | wc -l
  </code></pre>
  
  <p>It shows 3 which are the number of cores I have on my host machine.</p>
  
  <p>Any idea on how to restrict the resources to the container and how to verify the restrictions??</p>