From 177c27e75dccdc64f488c240948ad6de88383a29 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 9 May 2018 17:37:31 -0400 Subject: Do not error trying to remove cgroups that don't exist Signed-off-by: Matthew Heon Closes: #507 Approved by: baude --- libpod/container_internal.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 21ddf9cbb..cbf2a61b8 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -736,6 +736,12 @@ func (c *Container) cleanupCgroups() error { cgroup, err := cgroups.Load(cgroups.V1, cgroups.StaticPath(path)) if err != nil { + // It's fine for the cgroup to not exist + // We want it gone, it's gone + if err == cgroups.ErrCgroupDeleted { + return nil + } + return err } -- cgit v1.2.3-54-g00ecf