How can we change the memory and cpu limit for docker containers at runtime? I mean while the container is running I would like to change the the memory limit for example
Thanks in advance
How can we change the memory and cpu limit for docker containers at runtime? I mean while the container is running I would like to change the the memory limit for example
Thanks in advance
You cannot change that inside the running container, you would have to do that on your host.
How you do that on the host depends on your host-os, on Linux I suggest to take a look a cgroups, thats how docker internally restricts containers.
On ubuntu you could use the cgroup manager cgm (tried it on ubuntu 15.04).