Handle default cri socket path in docker
Use /var/run/dockershim.sock for defaultpull/7780/head
parent
5f86da5b54
commit
e726215974
|
@ -621,6 +621,9 @@ func (k *Bootstrapper) DeleteCluster(k8s config.KubernetesConfig) error {
|
||||||
|
|
||||||
ka := bsutil.InvokeKubeadm(k8s.KubernetesVersion)
|
ka := bsutil.InvokeKubeadm(k8s.KubernetesVersion)
|
||||||
sp := cr.SocketPath()
|
sp := cr.SocketPath()
|
||||||
|
if sp == "" {
|
||||||
|
sp = kconst.DefaultDockerCRISocket
|
||||||
|
}
|
||||||
cmd := fmt.Sprintf("%s reset --cri-socket %s --force", ka, sp)
|
cmd := fmt.Sprintf("%s reset --cri-socket %s --force", ka, sp)
|
||||||
if version.LT(semver.MustParse("1.11.0")) {
|
if version.LT(semver.MustParse("1.11.0")) {
|
||||||
cmd = fmt.Sprintf("%s reset --cri-socket %s", ka, sp)
|
cmd = fmt.Sprintf("%s reset --cri-socket %s", ka, sp)
|
||||||
|
|
Loading…
Reference in New Issue