mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
14 lines
342 B
Text
14 lines
342 B
Text
|
#!/bin/sh
|
||
|
|
||
|
# Ensure cgroup is mounted
|
||
|
if [ -z "`/bin/egrep -e '^cgroup' /etc/fstab`" ]; then
|
||
|
/bin/echo 'cgroup /sys/fs/cgroup cgroup defaults 0 0' >>/etc/fstab
|
||
|
fi
|
||
|
if [ -z "`/bin/mount | /bin/egrep -e '^cgroup'`" ]; then
|
||
|
/bin/mount /sys/fs/cgroup
|
||
|
fi
|
||
|
|
||
|
# Start docker
|
||
|
/usr/sbin/update-rc.d docker defaults
|
||
|
/etc/init.d/docker start
|