diff --git a/cmd/kubeadm/app/cmd/reset.go b/cmd/kubeadm/app/cmd/reset.go index 2c0ffbad131..2177c3b29b4 100644 --- a/cmd/kubeadm/app/cmd/reset.go +++ b/cmd/kubeadm/app/cmd/reset.go @@ -118,6 +118,9 @@ func newResetData(cmd *cobra.Command, options *resetOptions, in io.Reader, out i return nil, err } klog.V(1).Infof("[reset] Detected and using CRI socket: %s", criSocketPath) + } else { + criSocketPath = options.criSocketPath + klog.V(1).Infof("[reset] Using specified CRI socket: %s", criSocketPath) } return &resetData{