mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 21:42:39 +00:00
Create a systemd cgroups mountpoint
This allows systemd based containers to "just work". Fixes https://github.com/docker/pinata/issues/3126 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
0f8182c3e4
commit
b6c9bd9b88
@ -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