mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-01 06:58:56 +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"
|
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
|
# Only start with networking on cloud editions
|
||||||
DOCKER_OPTS="${DOCKER_OPTS} -H unix:///var/run/docker.sock"
|
DOCKER_OPTS="${DOCKER_OPTS} -H unix:///var/run/docker.sock"
|
||||||
if [ "$(mobyplatform)" = "aws" ] || [ "$(mobyplatform)" = "azure" ]
|
if [ "$(mobyplatform)" = "aws" ] || [ "$(mobyplatform)" = "azure" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user