Answer the question
In order to leave comments, you need to log in
How to return the default value of the NanoCpus parameter?
The default value of the NanoCpus
parameter is 0
docker inspect --format='{{.HostConfig.NanoCpus}}' conainer
docker update --cpus "1" conainer
Answer the question
In order to leave comments, you need to log in
--cpus=<value>
Specify how much of the available CPU resources a container can use. For instance, if the host machine has two CPUs and you set --cpus="1.5", the container is guaranteed at most one and a half of the CPUs. This is the equivalent of setting --cpu-period="100000" and --cpu-quota="150000".
--cpus
equal to the number of processors in the system. .HostConfig.NanoCpus
become equal to 0, you can recreate the container.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question