diff --git a/server/sandbox_remove.go b/server/sandbox_remove.go index 19165250..03011454 100644 --- a/server/sandbox_remove.go +++ b/server/sandbox_remove.go @@ -49,7 +49,7 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR return nil, fmt.Errorf("failed to delete container %s in pod sandbox %s: %v", c.Name(), sb.id, err) } - if c == podInfraContainer { + if c.ID() == podInfraContainer.ID() { continue }