Pass through cgroups when trying to run systemd

From https://discuss.circleci.com/t/docker-with-centos7-systemd-container/885/14
This commit is contained in:
yuvipanda
2018-07-11 09:24:38 -07:00
parent b5956f911f
commit ebb95bfcd8

View File

@@ -25,6 +25,7 @@ def run_systemd_image(image_name, container_name):
subprocess.check_call([ subprocess.check_call([
'docker', 'run', 'docker', 'run',
'--privileged', '--privileged',
'-v /sys/fs/cgroup:/sys/fs/cgroup',
'--detach', '--detach',
'--name', container_name, '--name', container_name,
image_name image_name