Merge pull request #403 from justincormack/butts

Create a systemd cgroups mountpoint
This commit is contained in:
Justin Cormack 2016-08-10 14:35:41 +01:00 committed by GitHub
commit 444538b5ed

View File

@ -13,6 +13,13 @@ start()
pidfile="/run/docker.pid"
# create cgroups mount for systemd containers
if [ ! -d /sys/fs/cgroup/systemd ]
then
mkdir -p /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
fi
# Only start with networking on cloud editions
DOCKER_OPTS="${DOCKER_OPTS} -H unix:///var/run/docker.sock"
if [ "$(mobyplatform)" = "aws" ] || [ "$(mobyplatform)" = "azure" ]