问题
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