docker: mount systemd cgroup at startup

This commit is contained in:
Yann Autissier 2018-12-17 16:21:59 +01:00 committed by Helmut Pozimski
parent 2a293dc31d
commit 3572c2c1ed
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,8 @@
#!/bin/sh
[ -r conf ] && . ./conf
modprobe -q loop || exit 1
mountpoint -q /sys/fs/cgroup/systemd || {
mkdir -p /sys/fs/cgroup/systemd;
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd;
}
exec chpst -o 1048576 -p 1048576 dockerd $OPTS 2>/dev/null

View file

@ -1,7 +1,7 @@
# Template file for 'docker'
pkgname=docker
version=18.09.1
revision=1
revision=2
wrksrc="${pkgname}-ce-${version}"
hostmakedepends="git go pkg-config curl cmake"
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel libapparmor-devel libltdl-devel"