用于Windows的Docker桌面kubelet日志位于何处? [英] Where are the Docker Desktop for Windows kubelet logs located?

查看:308
本文介绍了用于Windows的Docker桌面kubelet日志位于何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到Docker Desktop(Windows)的kubelet日志所在的位置.在此处,有一个类似的问题,但所有答案都针对linux/样的kubernetes安装.

解决方案

要获取kubelet日志,您需要访问运行docker daemon的虚拟机.由于没有可用的ssh,因此有解决方法这个:

这里是如何登录虚拟机:

docker run --privileged -it -v /:/host -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client

,然后使用以下命令获取kubelet日志:

ls /host/var/log/kubelet*

请注意,这只是针对测试而设计的工具的解决方法,并非官方支持的方法.此案例还描述了如何 ssh到docker deamon . /p>

I can't find where the kubelet logs are located for Docker Desktop (Windows). There's a similar question here, but the answers all refer to linux/kind installs of kubernetes.

解决方案

To get kubelet logs you need to get access to the virtual machine that docker daemon runs in. Since there is no ssh available there is workaround for this:

Here`s how to login into VM:

docker run --privileged -it -v /:/host -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client

and then use this command to get the kubelet logs:

ls /host/var/log/kubelet*

Please note that this is just workaround for tool that was designed for testing and it`s not the official supported way. This case also describes how to ssh to docker deamon.

这篇关于用于Windows的Docker桌面kubelet日志位于何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆