J.Done
J.Done

Reputation: 3033

Docker-machine resource limit

I made docker-machine like below

docker-machine create --driver virtualbox --virtualbox-cpu-count 2 --virtualbox-memory 2048 default

As I known, docker container is on this docker-machine host. I made some container on this docker-machine host, and somehow seems docker container use more resource than setting resource on docker-machine (actullay cpu).

  1. Is this possible? If so, What is actually do 'virtualbox-memory' and 'cpu-count'?
  2. Here is 'docker stats' output. Why is cpu usage more than 100%? enter image description here

Upvotes: 0

Views: 816

Answers (1)

zerkms
zerkms

Reputation: 254916

In the docker stats every container gets 100% added to the CPU% column for every core allocated.

It means couple of things:

  • the percentage per line might be more than 100%
  • the total sum of percentages can be more than number of cores in the server

Upvotes: 2

Related Questions