server: do not compare pointers
@@ -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
}
