mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-30 14:10:57 +00:00
Merge pull request #403 from justincormack/butts
Create a systemd cgroups mountpoint
This commit is contained in:
commit
444538b5ed
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user