Skip to content

Commit 417ef53

Browse files
committed
Add cgroups host mode
1 parent 4601e0b commit 417ef53

File tree

8 files changed

+103
-0
lines changed

8 files changed

+103
-0
lines changed

molecule/downgrade/molecule.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ platforms:
99
image: almalinux:8
1010
dockerfile: ../common/Dockerfile.j2
1111
privileged: true
12+
cgroupns_mode: host
1213
volumes:
1314
- /sys/fs/cgroup:/sys/fs/cgroup:rw
1415
command: /usr/sbin/init
@@ -23,20 +24,23 @@ platforms:
2324
image: alpine:3.14
2425
dockerfile: ../common/Dockerfile.j2
2526
privileged: true
27+
cgroupns_mode: host
2628
volumes:
2729
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2830
command: /sbin/init
2931
- name: alpine-3.15
3032
image: alpine:3.15
3133
dockerfile: ../common/Dockerfile.j2
3234
privileged: true
35+
cgroupns_mode: host
3336
volumes:
3437
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3538
command: /sbin/init
3639
- name: alpine-3.16
3740
image: alpine:3.16
3841
dockerfile: ../common/Dockerfile.j2
3942
privileged: true
43+
cgroupns_mode: host
4044
volumes:
4145
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4246
command: /sbin/init
@@ -58,6 +62,7 @@ platforms:
5862
image: centos:7
5963
dockerfile: ../common/Dockerfile.j2
6064
privileged: true
65+
cgroupns_mode: host
6166
volumes:
6267
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6368
command: /usr/sbin/init
@@ -93,62 +98,71 @@ platforms:
9398
image: registry.access.redhat.com/ubi7/ubi:7.9
9499
dockerfile: ../common/Dockerfile.j2
95100
privileged: true
101+
cgroupns_mode: host
96102
volumes:
97103
- /sys/fs/cgroup:/sys/fs/cgroup:rw
98104
command: /usr/sbin/init
99105
- name: rhel-8
100106
image: redhat/ubi8:8.7
101107
dockerfile: ../common/Dockerfile.j2
102108
privileged: true
109+
cgroupns_mode: host
103110
volumes:
104111
- /sys/fs/cgroup:/sys/fs/cgroup:rw
105112
command: /usr/sbin/init
106113
- name: rhel-9
107114
image: redhat/ubi9:9.1.0
108115
dockerfile: ../common/Dockerfile.j2
109116
privileged: true
117+
cgroupns_mode: host
110118
volumes:
111119
- /sys/fs/cgroup:/sys/fs/cgroup:rw
112120
command: /usr/sbin/init
113121
- name: rockylinux-8
114122
image: rockylinux:8
115123
dockerfile: ../common/Dockerfile.j2
116124
privileged: true
125+
cgroupns_mode: host
117126
volumes:
118127
- /sys/fs/cgroup:/sys/fs/cgroup:rw
119128
command: /usr/sbin/init
120129
- name: rockylinux-9
121130
image: rockylinux:9.0.20220720
122131
dockerfile: ../common/Dockerfile.j2
123132
privileged: true
133+
cgroupns_mode: host
124134
volumes:
125135
- /sys/fs/cgroup:/sys/fs/cgroup:rw
126136
command: /usr/sbin/init
127137
- name: sles15
128138
image: registry.suse.com/bci/bci-base:15.4
129139
dockerfile: ../common/Dockerfile.j2
130140
privileged: true
141+
cgroupns_mode: host
131142
volumes:
132143
- /sys/fs/cgroup:/sys/fs/cgroup:rw
133144
command: /usr/sbin/init
134145
- name: ubuntu-bionic
135146
image: ubuntu:bionic
136147
dockerfile: ../common/Dockerfile.j2
137148
privileged: true
149+
cgroupns_mode: host
138150
volumes:
139151
- /sys/fs/cgroup:/sys/fs/cgroup:rw
140152
command: /sbin/init
141153
- name: ubuntu-focal
142154
image: ubuntu:focal
143155
dockerfile: ../common/Dockerfile.j2
144156
privileged: true
157+
cgroupns_mode: host
145158
volumes:
146159
- /sys/fs/cgroup:/sys/fs/cgroup:rw
147160
command: /sbin/init
148161
- name: ubuntu-jammy
149162
image: ubuntu:jammy
150163
dockerfile: ../common/Dockerfile.j2
151164
privileged: true
165+
cgroupns_mode: host
152166
volumes:
153167
- /sys/fs/cgroup:/sys/fs/cgroup:rw
154168
command: /sbin/init

molecule/downgrade_plus/molecule.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
2323
image: alpine:3.13
2424
dockerfile: ../common/Dockerfile.j2
2525
privileged: true
26+
cgroupns_mode: host
2627
volumes:
2728
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2829
command: /sbin/init
2930
- name: alpine-3.14
3031
image: alpine:3.14
3132
dockerfile: ../common/Dockerfile.j2
3233
privileged: true
34+
cgroupns_mode: host
3335
volumes:
3436
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3537
command: /sbin/init
3638
- name: alpine-3.15
3739
image: alpine:3.15
3840
dockerfile: ../common/Dockerfile.j2
3941
privileged: true
42+
cgroupns_mode: host
4043
volumes:
4144
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4245
command: /sbin/init
@@ -58,6 +61,7 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
5861
image: centos:7
5962
dockerfile: ../common/Dockerfile.j2
6063
privileged: true
64+
cgroupns_mode: host
6165
volumes:
6266
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6367
command: /usr/sbin/init
@@ -93,62 +97,71 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
9397
image: registry.access.redhat.com/ubi7/ubi:7.9
9498
dockerfile: ../common/Dockerfile.j2
9599
privileged: true
100+
cgroupns_mode: host
96101
volumes:
97102
- /sys/fs/cgroup:/sys/fs/cgroup:rw
98103
command: /usr/sbin/init
99104
- name: rhel-8
100105
image: redhat/ubi8:8.7
101106
dockerfile: ../common/Dockerfile.j2
102107
privileged: true
108+
cgroupns_mode: host
103109
volumes:
104110
- /sys/fs/cgroup:/sys/fs/cgroup:rw
105111
command: /usr/sbin/init
106112
- name: rhel-9
107113
image: redhat/ubi9:9.1.0
108114
dockerfile: ../common/Dockerfile.j2
109115
privileged: true
116+
cgroupns_mode: host
110117
volumes:
111118
- /sys/fs/cgroup:/sys/fs/cgroup:rw
112119
command: /usr/sbin/init
113120
- name: rockylinux-8
114121
image: rockylinux:8
115122
dockerfile: ../common/Dockerfile.j2
116123
privileged: true
124+
cgroupns_mode: host
117125
volumes:
118126
- /sys/fs/cgroup:/sys/fs/cgroup:rw
119127
command: /usr/sbin/init
120128
- name: rockylinux-9
121129
image: rockylinux:9.0.20220720
122130
dockerfile: ../common/Dockerfile.j2
123131
privileged: true
132+
cgroupns_mode: host
124133
volumes:
125134
- /sys/fs/cgroup:/sys/fs/cgroup:rw
126135
command: /usr/sbin/init
127136
- name: sles15
128137
image: registry.suse.com/bci/bci-base:15.4
129138
dockerfile: ../common/Dockerfile.j2
130139
privileged: true
140+
cgroupns_mode: host
131141
volumes:
132142
- /sys/fs/cgroup:/sys/fs/cgroup:rw
133143
command: /usr/sbin/init
134144
- name: ubuntu-bionic
135145
image: ubuntu:bionic
136146
dockerfile: ../common/Dockerfile.j2
137147
privileged: true
148+
cgroupns_mode: host
138149
volumes:
139150
- /sys/fs/cgroup:/sys/fs/cgroup:rw
140151
command: /sbin/init
141152
- name: ubuntu-focal
142153
image: ubuntu:focal
143154
dockerfile: ../common/Dockerfile.j2
144155
privileged: true
156+
cgroupns_mode: host
145157
volumes:
146158
- /sys/fs/cgroup:/sys/fs/cgroup:rw
147159
command: /sbin/init
148160
- name: ubuntu-jammy
149161
image: ubuntu:jammy
150162
dockerfile: ../common/Dockerfile.j2
151163
privileged: true
164+
cgroupns_mode: host
152165
volumes:
153166
- /sys/fs/cgroup:/sys/fs/cgroup:rw
154167
command: /sbin/init

molecule/module/molecule.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ platforms:
99
image: almalinux:8
1010
dockerfile: ../common/Dockerfile.j2
1111
privileged: true
12+
cgroupns_mode: host
1213
volumes:
1314
- /sys/fs/cgroup:/sys/fs/cgroup:rw
1415
command: /usr/sbin/init
@@ -23,20 +24,23 @@ platforms:
2324
image: alpine:3.14
2425
dockerfile: ../common/Dockerfile.j2
2526
privileged: true
27+
cgroupns_mode: host
2628
volumes:
2729
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2830
command: /sbin/init
2931
- name: alpine-3.15
3032
image: alpine:3.15
3133
dockerfile: ../common/Dockerfile.j2
3234
privileged: true
35+
cgroupns_mode: host
3336
volumes:
3437
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3538
command: /sbin/init
3639
- name: alpine-3.16
3740
image: alpine:3.16
3841
dockerfile: ../common/Dockerfile.j2
3942
privileged: true
43+
cgroupns_mode: host
4044
volumes:
4145
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4246
command: /sbin/init
@@ -58,6 +62,7 @@ platforms:
5862
image: centos:7
5963
dockerfile: ../common/Dockerfile.j2
6064
privileged: true
65+
cgroupns_mode: host
6166
volumes:
6267
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6368
command: /usr/sbin/init
@@ -93,62 +98,71 @@ platforms:
9398
image: registry.access.redhat.com/ubi7/ubi:7.9
9499
dockerfile: ../common/Dockerfile.j2
95100
privileged: true
101+
cgroupns_mode: host
96102
volumes:
97103
- /sys/fs/cgroup:/sys/fs/cgroup:rw
98104
command: /usr/sbin/init
99105
- name: rhel-8
100106
image: redhat/ubi8:8.7
101107
dockerfile: ../common/Dockerfile.j2
102108
privileged: true
109+
cgroupns_mode: host
103110
volumes:
104111
- /sys/fs/cgroup:/sys/fs/cgroup:rw
105112
command: /usr/sbin/init
106113
- name: rhel-9
107114
image: redhat/ubi9:9.1.0
108115
dockerfile: ../common/Dockerfile.j2
109116
privileged: true
117+
cgroupns_mode: host
110118
volumes:
111119
- /sys/fs/cgroup:/sys/fs/cgroup:rw
112120
command: /usr/sbin/init
113121
- name: rockylinux-8
114122
image: rockylinux:8
115123
dockerfile: ../common/Dockerfile.j2
116124
privileged: true
125+
cgroupns_mode: host
117126
volumes:
118127
- /sys/fs/cgroup:/sys/fs/cgroup:rw
119128
command: /usr/sbin/init
120129
- name: rockylinux-9
121130
image: rockylinux:9.0.20220720
122131
dockerfile: ../common/Dockerfile.j2
123132
privileged: true
133+
cgroupns_mode: host
124134
volumes:
125135
- /sys/fs/cgroup:/sys/fs/cgroup:rw
126136
command: /usr/sbin/init
127137
- name: sles15
128138
image: registry.suse.com/bci/bci-base:15.4
129139
dockerfile: ../common/Dockerfile.j2
130140
privileged: true
141+
cgroupns_mode: host
131142
volumes:
132143
- /sys/fs/cgroup:/sys/fs/cgroup:rw
133144
command: /usr/sbin/init
134145
- name: ubuntu-bionic
135146
image: ubuntu:bionic
136147
dockerfile: ../common/Dockerfile.j2
137148
privileged: true
149+
cgroupns_mode: host
138150
volumes:
139151
- /sys/fs/cgroup:/sys/fs/cgroup:rw
140152
command: /sbin/init
141153
- name: ubuntu-focal
142154
image: ubuntu:focal
143155
dockerfile: ../common/Dockerfile.j2
144156
privileged: true
157+
cgroupns_mode: host
145158
volumes:
146159
- /sys/fs/cgroup:/sys/fs/cgroup:rw
147160
command: /sbin/init
148161
- name: ubuntu-jammy
149162
image: ubuntu:jammy
150163
dockerfile: ../common/Dockerfile.j2
151164
privileged: true
165+
cgroupns_mode: host
152166
volumes:
153167
- /sys/fs/cgroup:/sys/fs/cgroup:rw
154168
command: /sbin/init

0 commit comments

Comments
 (0)