Where are the Docker Desktop for Windows kubelet logs located?

本小妞迷上赌 提交于 2021-01-19 08:49:07

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/63711842/where-are-the-docker-desktop-for-windows-kubelet-logs-located

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!