summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 452be176c..94cd74c09 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -325,7 +325,6 @@ func resetState(state *containerState) error {
state.Interfaces = nil
state.Routes = nil
state.BindMounts = make(map[string]string)
- state.CgroupCreated = false
return nil
}
@@ -561,7 +560,6 @@ func (c *Container) init(ctx context.Context) error {
logrus.Debugf("Created container %s in OCI runtime", c.ID())
c.state.State = ContainerStateCreated
- c.state.CgroupCreated = true
if err := c.save(); err != nil {
return err
@@ -832,20 +830,6 @@ func (c *Container) cleanup() error {
lastError = err
}
- if err := c.cleanupCgroups(); err != nil {
- /*
- if lastError != nil {
- logrus.Errorf("Error cleaning up container %s CGroups: %v", c.ID(), err)
- } else {
- lastError = err
- }
- */
- // For now we are going to only warn on failures to clean up cgroups
- // We have a conflict with running podman containers cleanup in same cgroup as container
- logrus.Warnf("Ignoring Error cleaning up container %s CGroups: %v", c.ID(), err)
-
- }
-
// Unmount storage
if err := c.cleanupStorage(); err != nil {
if lastError != nil {