简体   繁体   中英

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%? 在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM