File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ driver:
18
18
platforms :
19
19
- name : " ${os:-ubuntu20}-${tag:-latest}"
20
20
image : " ${namespace:-monolithprojects}/systemd-${os:-ubuntu20}:${tag:-latest}"
21
- command : ${MOLECULE_DOCKER_COMMAND:-""}
22
21
volumes :
23
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
24
- cgroupns_mode : host
22
+ - " /sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro} " # Use "ro" for cgroup v1 and "rw" for cgroup v2
23
+ cgroupns_mode : ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and " host" for cgroup v2
25
24
privileged : true
26
25
pre_build_image : true
27
26
verifier :
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ driver:
18
18
platforms :
19
19
- name : " ${os:-ubuntu20}-${tag:-latest}"
20
20
image : " ${namespace:-monolithprojects}/systemd-${os:-ubuntu20}:${tag:-latest}"
21
- command : ${MOLECULE_DOCKER_COMMAND:-""}
22
21
volumes :
23
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
24
- cgroupns_mode : host
22
+ - " /sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro} " # Use "ro" for cgroup v1 and "rw" for cgroup v2
23
+ cgroupns_mode : ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and " host" for cgroup v2
25
24
privileged : true
26
25
pre_build_image : true
27
26
verifier :
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ driver:
15
15
platforms :
16
16
- name : " ${os:-ubuntu20}-${tag:-latest}"
17
17
image : " ${namespace:-monolithprojects}/systemd-${os:-ubuntu20}:${tag:-latest}"
18
- command : ${MOLECULE_DOCKER_COMMAND:-""}
19
18
volumes :
20
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
21
- cgroupns_mode : host
19
+ - " /sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro} " # Use "ro" for cgroup v1 and "rw" for cgroup v2
20
+ cgroupns_mode : ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and " host" for cgroup v2
22
21
privileged : true
23
22
pre_build_image : true
24
23
verifier :
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ driver:
15
15
platforms :
16
16
- name : " ${os:-ubuntu20}-${tag:-latest}"
17
17
image : " ${namespace:-monolithprojects}/systemd-${os:-ubuntu20}:${tag:-latest}"
18
- command : ${MOLECULE_DOCKER_COMMAND:-""}
19
18
volumes :
20
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
21
- cgroupns_mode : host
19
+ - " /sys/fs/cgroup:/sys/fs/cgroup:${MOLECULE_DOCKER_VOLUMES:-ro} " # Use "ro" for cgroup v1 and "rw" for cgroup v2
20
+ cgroupns_mode : ${MOLECULE_DOCKER_CGROUPS_MODE:-"private"} # Use "private" for cgroup v1 and " host" for cgroup v2
22
21
privileged : true
23
22
pre_build_image : true
24
23
verifier :
You can’t perform that action at this time.
0 commit comments