func (m *CgroupManager) Destroy() error {
	for _, subsystem := range systems {
		if err := subsystem.Remove(m.containerID); err != nil {
			log.Println("[ERROR]:", err)
		}
	}
	return nil
}
Destroy remove all subsystems
package subsystem
import (
	"log"
)
type CgroupManager struct {
	containerID string
}
func NewCgroupManager(containerID string) *CgroupManager {
	return &CgroupManager{
		containerID: containerID,
	}
}
func (m *CgroupManager) Set(conf *ResourceConfig) error {
	for _, subsystem := range systems {
		if err := subsystem.Set(m.containerID, conf); err != nil {
			return err
		}
	}
	return nil
}
func (m *CgroupManager) Apply(pid int) error {
	for _, subsystem := range systems {
		if err := subsystem.Apply(m.containerID, pid); err != nil {
			return err
		}
	}
	return nil
}