Browse code

Adding documentation for '--cgroup-parent' option. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)

Vishnu Kannan authored on 2015/03/17 08:06:47
Showing 3 changed files
... ...
@@ -46,6 +46,7 @@ docker-create - Create a new container
46 46
 [**-v**|**--volume**[=*[]*]]
47 47
 [**--volumes-from**[=*[]*]]
48 48
 [**-w**|**--workdir**[=*WORKDIR*]]
49
+[**--cgroup-parent**[=*CGROUP-PATH*]]
49 50
 IMAGE [COMMAND] [ARG...]
50 51
 
51 52
 # OPTIONS
... ...
@@ -67,6 +68,9 @@ IMAGE [COMMAND] [ARG...]
67 67
 **--cidfile**=""
68 68
    Write the container ID to the file
69 69
 
70
+**--cgroup-parent**=""
71
+   Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
72
+
70 73
 **--cpuset-cpus**=""
71 74
    CPUs in which to allow execution (0-3, 0,1)
72 75
 
... ...
@@ -49,6 +49,7 @@ docker-run - Run a command in a new container
49 49
 [**-v**|**--volume**[=*[]*]]
50 50
 [**--volumes-from**[=*[]*]]
51 51
 [**-w**|**--workdir**[=*WORKDIR*]]
52
+[**--cgroup-parent**[=*CGROUP-PATH*]]
52 53
 IMAGE [COMMAND] [ARG...]
53 54
 
54 55
 # DESCRIPTION
... ...
@@ -124,6 +125,9 @@ division of CPU shares:
124 124
 **--cap-drop**=[]
125 125
    Drop Linux capabilities
126 126
 
127
+**--cgroup-parent**=""
128
+   Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
129
+
127 130
 **--cidfile**=""
128 131
    Write the container ID to the file
129 132
 
... ...
@@ -805,6 +805,7 @@ Creates a new container.
805 805
       -c, --cpu-shares=0         CPU shares (relative weight)
806 806
       --cap-add=[]               Add Linux capabilities
807 807
       --cap-drop=[]              Drop Linux capabilities
808
+      --cgroup-parent=           Optional parent cgroup for the container
808 809
       --cidfile=""               Write the container ID to the file
809 810
       --cpuset-cpus=""           CPUs in which to allow execution (0-3, 0,1)
810 811
       --device=[]                Add a host device to the container