You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("unable to get cgroup PIDs: %w", err)
180
+
}
181
+
iflen(pids) !=0 {
182
+
// TODO: return an error.
183
+
logrus.Warnf("container's cgroup is not empty: %d process(es) found", len(pids))
184
+
logrus.Warn("DEPRECATED: running container in a non-empty cgroup won't be supported in runc 1.2; https://github.com/opencontainers/runc/issues/3132")
185
+
}
168
186
}
169
-
cm, err:=manager.New(config.Cgroups)
187
+
188
+
// Check that cgroup is not frozen. Do not use Exists() here
189
+
// since in cgroup v1 it only checks "devices" controller.
190
+
st, err:=cm.GetFreezerState()
170
191
iferr!=nil {
192
+
returnnil, fmt.Errorf("unable to get cgroup freezer state: %w", err)
0 commit comments