пятница, 16 октября 2015 г.

Docker. Limit container resources.

Here is how to limit the containers resources:

Limit by CPU:
Use docker run -c option.

Limit RAM:
docker run -m 1024m

Limit by HDD:
There is no universal way to achieve it. It is recommended to use devicemapper storage driver.
Also, by default the size of container is 10 Gb. This can be tuned by changing the parameter dm.basesize.

Комментариев нет:

Отправить комментарий