martin-juul
5/16/2018 - 8:07 PM

docker-container-limit-runtime.md

docker update --memory "1g" --cpuset-cpu "1" <RunningContainerNameOrID> this will update the "RunningContainerNameOrId" to use 1g of memory and only use cpu core 1

To up date all running containers to use core 1 and 1g of memory:

docker update --cpuset-cpus "1" --memory "1g" $(docker ps | awk 'NR>1 {print $1}')

https://stackoverflow.com/a/39152553