https://github.com/AliyunContainerService/k8s-for-docker-desktop
https://github.com/daniel-hutao/k8s-source-code-analysis
Docker启用K8S后新增的两个目录
~/.kube
~/Library/Group Containers/group.com.docker/pki
注意部分网友对解决Docker长时间无法启动K8S建议的解决方案是删除这两个目录然后重启
https://www.jianshu.com/p/f09f7421e841
https://blog.csdn.net/weixin_31558841/article/details/112072166
https://github.com/AliyunContainerService/k8s-for-docker-desktop/issues/106
https://github.com/maguowei/k8s-docker-desktop-for-mac/issues/16
https://github.com/AliyunContainerService/k8s-for-docker-desktop/issues/123
如果在Kubernetes部署的过程中出现问题,可以通过docker desktop应用日志获得实时日志信息:
pred=’process matches “.(ocker|vpnkit).”
|| (process in {“taskgated-helper”, “launchservicesd”, “kernel”} && eventMessage contains[c] “docker”)’
/usr/bin/log stream –style syslog –level=debug –color=always –predicate “$pred”
http://hutao.tech/k8s-source-code-analysis/prepare/debug-environment-3node.html
https://docs.docker.com/docker-for-mac/release-notes/
https://github.com/docker/awesome-compose
https://www.jianshu.com/p/22c497ffe191
https://github.com/wubiaowp/kubernetes-for-docker-desktop-mac
https://blog.csdn.net/weixin_39954682/article/details/111554523
rm -rf ~/.kuberm -rf ~/.minikuberm -rf /usr/local/bin/minikube
rm -rf ~/Library/Group\ Containers/group.com.docker/pki
rm -rf ~/.kube
pred=’process matches “.*(ocker | vpnkit).*“\n | (process in {“taskgated-helper”, “launchservicesd”, “kernel”} && eventMessage contains[c] “docker”)’\n/usr/bin/log stream –style syslog –level=debug –color=always –predicate “$pred” |
sh load_images.sh
功能的方法
vi ~/Library/Group\ Containers/group.com.docker/settings.json
“kubernetesEnabled”: false,
“showKubernetesSystemContainers”: false,
“kubernetesInitialInstallPerformed”: false,
清理干净所有镜像
Docker 3.2.2版本
修改k8s-for-docker-desktop
的images.properties
v1.19.3 为v1.19.7
sh load_images.sh
重启docker
% docker images |grep desktop
docker/desktop-kubernetes kubernetes-v1.19.7-cni-v0.8.5-critools-v1.17.0-debian 93b3398dbfde 6 weeks ago 285MB
docker/desktop-storage-provisioner v1.1 e704287ce753 12 months ago 41.8MB
docker/desktop-vpnkit-controller v1.0 79da37e5a3aa 12 months ago 36.6MB
看到上面三个就成功了