From 54e6263c4d227514a19a934bcfe4505a4131c2ad Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 14 Nov 2016 16:23:38 -0500 Subject: system/docker: Fix README. --- system/docker/README | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'system/docker/README') diff --git a/system/docker/README b/system/docker/README index d9c5e781b1..a2b961a519 100644 --- a/system/docker/README +++ b/system/docker/README @@ -5,23 +5,23 @@ on VMs, bare metal, OpenStack clusters, public clouds and more. To use docker as a limited user, add your user to the 'docker' group: - # groupadd -r -g 281 docker - # usermod -a -G docker + # groupadd -r -g 281 docker + # usermod -a -G docker 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: - if [ -x /etc/rc.d/rc.docker ]; then - /etc/rc.d/rc.docker start - fi + if [ -x /etc/rc.d/rc.docker ]; then + /etc/rc.d/rc.docker start + fi and to /etc/rc.d/rc.local_shutdown (creating it if needed): - if [ -x /etc/rc.d/rc.docker ]; then - /etc/rc.d/rc.docker stop - fi + if [ -x /etc/rc.d/rc.docker ]; then + /etc/rc.d/rc.docker stop + fi 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 -- cgit v1.2.3