From 61468a98d3b4330ed709a8bdbc5bb431b92d0e28 Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Mon, 10 Oct 2016 17:03:09 -0700 Subject: [PATCH] Make constraints a subsection of starting and stopping --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 548f09d..a212414 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ If you want to expose container ports through the host, see the [exposing ports] Restart policies on crashed docker instances are [covered here](http://container42.com/2014/09/30/docker-restart-policies/). -### CPU Constraints +#### CPU Constraints You can limit CPU, either using a percentage of all CPUs, or by using specific cores. @@ -144,7 +144,7 @@ docker run -ti --cpuset-cpus=0,4,6 agileek/cpuset-test Note that Docker can still **see** all of the CPUs inside the container -- it just isn't using all of them. See https://github.com/docker/docker/issues/20770 for more details. -### Memory Constraints +#### Memory Constraints You can also set [memory constraints](https://docs.docker.com/engine/reference/run/#/user-memory-constraints) on Docker: