mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #117835 from pacoxu/kubeadm-crictl
kubeadm: fix crictl pull using wrong flag, use -i and -r
This commit is contained in:
commit
50ce134595
@ -71,7 +71,7 @@ func (runtime *CRIRuntime) Socket() string {
|
||||
|
||||
// crictl creates a crictl command for the provided args.
|
||||
func (runtime *CRIRuntime) crictl(args ...string) utilsexec.Cmd {
|
||||
cmd := runtime.exec.Command(runtime.crictlPath, append([]string{"-r", runtime.Socket()}, args...)...)
|
||||
cmd := runtime.exec.Command(runtime.crictlPath, append([]string{"-r", runtime.Socket(), "-i", runtime.Socket()}, args...)...)
|
||||
cmd.SetEnv(os.Environ())
|
||||
return cmd
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user