diff options
author | B. Watson <yalhcru@gmail.com> | 2016-11-14 16:23:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-11-15 21:41:38 +0700 |
commit | 54e6263c4d227514a19a934bcfe4505a4131c2ad (patch) | |
tree | 5425bea9c887ae58de40ea2158c5f5e98d5ceedc /system/docker | |
parent | 80786582aa8dd25512739d7d3e4bc90d8f32457d (diff) |
system/docker: Fix README.
Diffstat (limited to 'system/docker')
-rw-r--r-- | system/docker/README | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/docker/README b/system/docker/README index d9c5e781b167..a2b961a519f7 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 <your_username> + # groupadd -r -g 281 docker + # usermod -a -G docker <your_username> 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 |