update go version, deps for runc v1.0.0-rc92

This commit is contained in:
Bradley Cicenas
2020-10-25 14:22:47 +00:00
parent 4d7d69d4cf
commit 03a0da3230
6 changed files with 89 additions and 56 deletions

View File

@@ -247,7 +247,7 @@ func (cm *Runc) All() (containers container.Containers) {
func getFactory(opts RuncOpts) (libcontainer.Factory, error) {
cgroupManager := libcontainer.Cgroupfs
if opts.systemdCgroups {
if systemd.UseSystemd() {
if systemd.IsRunningSystemd() {
cgroupManager = libcontainer.SystemdCgroups
} else {
return nil, fmt.Errorf("systemd cgroup enabled, but systemd support for managing cgroups is not available")