system/docker: Fix README.

This commit is contained in:
B. Watson 2016-11-14 16:23:38 -05:00 committed by Willy Sudiarto Raharjo
parent 80786582aa
commit 54e6263c4d
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -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