diff options
Diffstat (limited to 'runsc/container/container.go')
-rw-r--r-- | runsc/container/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go index c7dc6ec10..b2ea78084 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -449,7 +449,7 @@ func (c *Container) Destroy() error { // If we are the first container in the sandbox, take the sandbox down // as well. - if c.Sandbox != nil && c.Sandbox.ID == c.ID { + if c.Sandbox != nil && c.Sandbox.IsRootContainer(c.ID) { if err := c.Sandbox.Destroy(); err != nil { log.Warningf("Failed to destroy sandbox %q: %v", c.Sandbox.ID, err) } |