Skip to content

Commit

Permalink
retry on "runc list" error
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Jan 17, 2024
1 parent 09cec31 commit 74e9239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/minikube/cruntime/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func listCRIContainers(cr CommandRunner, root string, o ListContainersOptions) (
// avoid "no such file or directory" runc list error by retrying
// TODO (prezha): consider removing this retry workaround when #17976 is addressed upstream and we've updated to that runc version
list := func() error {
if rr, err = cr.RunCmd(exec.Command("sudo", args...)); err != nil {
rr, err = cr.RunCmd(exec.Command("sudo", args...))
if err != nil {
klog.Infof("temporary error listing containers using runc (will retry): %v", err)
return err
}
Expand Down

0 comments on commit 74e9239

Please sign in to comment.