title: How to verify cpu limit assigned to a docker container?
body: <p>According to <a href="https://docs.docker.com/config/containers/resource_constraints/" rel="noreferrer">Docker documentation</a>, in order to limit a container to a certain amount of cpu, we use the parameter <code>--cpus</code> when starting the container:</p>
  
  <p><code>docker run -it --cpus=".5" ubuntu /bin/bash</code></p>
  
  <p>Now that I have the container running, how do I check that limit that was assigned to the container in the first place?</p>
  
  <p>In other words, is there a command that I can run and I can see that <code>.5</code> that was assigned to the ubuntu container of the example?</p>