Skip to content

Commit

Permalink
Merge pull request concourse#177 from mook-as/docker-systemd-cgroup
Browse files Browse the repository at this point in the history
docker: force create systemd cgroup
  • Loading branch information
vito authored Mar 13, 2018
2 parents a09b1c5 + 264b371 commit bc993c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ sanitize_cgroups() {
ln -s "$mountpoint" "/sys/fs/cgroup/$sys"
fi
done

if ! test -e /sys/fs/cgroup/systemd ; then
mkdir /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd none /sys/fs/cgroup/systemd
fi
}

start_docker() {
Expand Down

0 comments on commit bc993c9

Please sign in to comment.