mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
system/docker: Fix README.
This commit is contained in:
parent
80786582aa
commit
54e6263c4d
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue