I
I
ivanburdin2018-02-12 23:37:37
Docker
ivanburdin, 2018-02-12 23:37:37

How to increase the resources available to a container in Docker?

Docker is installed on mac os, in the settings via the GUI, you can increase the number of cores and the amount of memory that will be available to containers. How to do the same without using the GUI , for example on centos via the console?
the docker run command seems to allocate resources within the scope we specify in the GUI. Tk when I try to specify 3 cores, it gives an error ...5a81fafb3dfdb779842431.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Tsvetkov, 2018-02-13
@yellow79

https://docs.docker.com/config/containers/resource...

A
alfss, 2018-02-13
@alfss

On OS X, these settings affect the virtual machine running docker.
On Linux, docker is running without intermediaries.
By default, the container gets access to all memory and cores, resource control options allow you to limit containers, when the aisles are reached, the container will be restarted (default behavior)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question