k8s-for-docker-desktop icon indicating copy to clipboard operation
k8s-for-docker-desktop copied to clipboard

mac docker 19.03.8 ,kubernetes 启动卡在 starting

Open zhangzerui20 opened this issue 3 years ago • 6 comments

image

查看日志如下: image

zhangzerui20 avatar Dec 31 '20 16:12 zhangzerui20

我也遇到了 你解决了吗? 截屏2021-01-14 00 44 29

2021-01-14 00:41:36.662811+0800  localhost com.docker.driver.amd64-linux[4025]: cannot get lease for master node: an error on the server ("") has prevented the request from succeeding (get leases.coordination.k8s.io docker-desktop)
2021-01-14 00:41:36.663188+0800  localhost com.docker.backend[4015]: external: POST /events 200 "DockerDesktopGo" ""
2021-01-14 00:41:37.614810+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:38.620114+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:39.624287+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:40.628581+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:41.636481+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:42.640834+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:43.644959+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false
2021-01-14 00:41:44.649936+0800  localhost com.docker.driver.amd64-linux[4025]: (libsystem_info.dylib) [com.apple.network.libinfo:getaddrinfo] nat64_v4_requires_synthesis(127.0.0.1) == false

wangqinggo avatar Jan 13 '21 16:01 wangqinggo

@wangqinggo 解决了,我这里是网络的原因,当时周末在家试了各种办法都不行,换到公司的网络就可以了,怀疑是哪里配置了代理。

zhangzerui20 avatar Jan 15 '21 10:01 zhangzerui20

我也这样, 切换网络, 或按 网上说的, rm -rf ~/Library/Group\ Containers/group.com.docker/pki/ 都不成功

luofei614 avatar Jan 17 '21 02:01 luofei614

branch要和K8s版本匹配,

此外要等下载一些Docker镜像

denverdino avatar Jan 19 '21 13:01 denverdino

首先确认当前版本Docker-Desktop使用的k8s版本号,我更新到最新版本所以k8s版本是1.19.3到$HOME下寻找Docker-Desktop按装目录寻找images.properties文件,对应镜像版本是否一致。 最新一次更新后我发现镜像版本还是1.18.8的所以复制https://github.com/AliyunContainerService/k8s-for-docker-desktop/blob/master/images.properties 的配置到我们的配置文件当中,并且在目录下执行load_images.sh,等待执行成功,再重启k8s

tale2009 avatar Feb 04 '21 07:02 tale2009

if see this --nat64_v4_requires_synthesis(127.0.0.1) == false

please try my hosts file as follows

127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost

127.0.0.1 kubernetes.docker.internal

EricRaw avatar Feb 21 '21 07:02 EricRaw