diff --git a/containerd/driver.go b/containerd/driver.go index bb31955..336452b 100644 --- a/containerd/driver.go +++ b/containerd/driver.go @@ -474,11 +474,6 @@ func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error { return fmt.Errorf("failed to decode task state from handle: %v", err) } - var driverConfig TaskConfig - if err := handle.Config.DecodeDriverConfig(&driverConfig); err != nil { - return fmt.Errorf("failed to decode driver config: %v", err) - } - container, err := d.loadContainer(taskState.ContainerName) if err != nil { return fmt.Errorf("Error in recovering container: %v", err)