summaryrefslogtreecommitdiff
path: root/system/docker/README
diff options
context:
space:
mode:
Diffstat (limited to 'system/docker/README')
-rw-r--r--system/docker/README19
1 files changed, 18 insertions, 1 deletions
diff --git a/system/docker/README b/system/docker/README
index a286c28507..fba86ed3b4 100644
--- a/system/docker/README
+++ b/system/docker/README
@@ -8,7 +8,7 @@ To use docker as a limited user, add your user to the 'docker' group:
# groupadd -r -g 281 docker
# usermod -a -G docker <your_username>
-This will require logging out and back in.
+This will require logging out and back in.
To have the docker daemon start and stop with your host,
add to /etc/rc.d/rc.local:
@@ -38,4 +38,21 @@ To accomplish this, add the following to your /etc/fstab:
cgroup /cgroup/blkio cgroup rw,relatime,blkio 0 0
+And in addition, add to /etc/cgconfig.conf the following:
+
+ mount {
+ cpuset = /cgroup/cpuset;
+ cpu = /cgroup/cpu;
+ cpuacct = /cgroup/cpuacct;
+ memory = /cgroup/memory;
+ devices = /cgroup/devices;
+ freezer = /cgroup/freezer;
+ net_cls = /cgroup/net_cls;
+ blkio = /cgroup/blkio;
+ }
+
+If you are interested in enabling cgroup memory resource controll over swap as
+well, then append "swapaccount=1" to your kernel's parameters. This is often in
+/etc/lilo.conf, on the "append" variable.
+
NOTE: google-go-lang is only needed at compile time - not needed for runtime.