Browse code

Make the docs for --cgroup-parent better

Signed-off-by: Marianna <mtesselh@gmail.com>

Marianna authored on 2015/04/18 11:01:16
Showing 2 changed files
... ...
@@ -848,8 +848,10 @@ you refer to it on the command line.
848 848
 > children) for security reasons, and to ensure repeatable builds on remote
849 849
 > Docker hosts. This is also the reason why `ADD ../file` will not work.
850 850
 
851
-`docker build` has a `--cgroup-parent` option that causes the containers used
852
-in the build to be run with this option.
851
+When `docker build` is run with the `--cgroup-parent` option the containers used
852
+in the build will be run with the [corresponding `docker run`
853
+flag](/reference/run/#specifying-custom-cgroups). 
854
+
853 855
 
854 856
 ## commit
855 857
 
... ...
@@ -465,6 +465,13 @@ Note:
465 465
 
466 466
 You would have to write policy defining a `svirt_apache_t` type.
467 467
 
468
+## Specifying custom cgroups
469
+
470
+Using the `--cgroup-parent` flag, you can pass a specific cgroup to run a
471
+container in. This allows you to create and manage cgroups on their own. You can
472
+define custom resources for those cgroups and put containers under a common
473
+parent group.
474
+
468 475
 ## Runtime constraints on resources
469 476
 
470 477
 The operator can also adjust the performance parameters of the