Docker Community Forums

Share and learn in the Docker community.

Docker Desktop Windows : SSH access to kubernetes node

Hello,

I’m starting to use Kubernetes via Docker Desktop (Windows).
I have to create a persistent volume, and to achieve this, I need to access my kubernetes node to create physically the directory.
Everything is explained is I were using minikube, but nothing related with Docker Desktop.
Event posts on stackoverflow are limited (and not working at least for me).
I list all my containers, and I’m not sure which one is the node :

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
149a0c9daf3f kubernetesui/dashboard “/dashboard --insecu…” 4 hours ago Up 4 hours k8s_kubernetes-dashboard_kubernetes-dashboard-7448ffc97b-5qmqs_kubernetes-dashboard_3a181285-e1f0-4410-b483-12f97e75d856_3
15df94b9eddf e704287ce753 “/storage-provisione…” 4 hours ago Up 4 hours k8s_storage-provisioner_storage-provisioner_kube-system_5777e733-08cc-430e-889d-8ce6acd7b19c_4
5db0831ef884 48d79e554db6 “/metrics-sidecar” 4 hours ago Up 4 hours k8s_dashboard-metrics-scraper_dashboard-metrics-scraper-79c5968bdc-qh44z_kubernetes-dashboard_7457fb4c-183f-41ec-b1e6-35711fb6dafa_3
f000b8b4a77d 79da37e5a3aa “/kube-vpnkit-forwar…” 4 hours ago Up 4 hours k8s_vpnkit-controller_vpnkit-controller_kube-system_1f5467a8-678d-4334-b17c-24545ab4ff18_3
a2ccf4875f32 bfe3a36ebd25 “/coredns -conf /etc…” 4 hours ago Up 4 hours k8s_coredns_coredns-f9fd979d6-w6skb_kube-system_2fcdf4a6-8150-4cea-9482-d71887916fdd_3
7cef3aa78de6 bfe3a36ebd25 “/coredns -conf /etc…” 4 hours ago Up 4 hours k8s_coredns_coredns-f9fd979d6-wxw7w_kube-system_db1a08d2-558b-4683-959c-46dc99d643e0_3
b176e634c32e cdef7632a242 “/usr/local/bin/kube…” 4 hours ago Up 4 hours k8s_kube-proxy_kube-proxy-9m9mh_kube-system_78fb7039-bc91-4735-914a-8e81ed0d135c_3
7c9569996d81 k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_dashboard-metrics-scraper-79c5968bdc-qh44z_kubernetes-dashboard_7457fb4c-183f-41ec-b1e6-35711fb6dafa_3
e71dc0d39cbf k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_storage-provisioner_kube-system_5777e733-08cc-430e-889d-8ce6acd7b19c_3
74f10eb8eec0 k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_kubernetes-dashboard-7448ffc97b-5qmqs_kubernetes-dashboard_3a181285-e1f0-4410-b483-12f97e75d856_3
3eaf84186150 k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_vpnkit-controller_kube-system_1f5467a8-678d-4334-b17c-24545ab4ff18_3
23e09c8ad81e k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_coredns-f9fd979d6-w6skb_kube-system_2fcdf4a6-8150-4cea-9482-d71887916fdd_3
af4986a481b6 k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_coredns-f9fd979d6-wxw7w_kube-system_db1a08d2-558b-4683-959c-46dc99d643e0_3
e73974b9da8c k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_kube-proxy-9m9mh_kube-system_78fb7039-bc91-4735-914a-8e81ed0d135c_3
905547cfb271 9b60aca1d818 “kube-controller-man…” 4 hours ago Up 4 hours k8s_kube-controller-manager_kube-controller-manager-docker-desktop_kube-system_07d42b7bf3823b30f57219558fcb55e2_3
2791722fa9b6 aaefbfa906bd “kube-scheduler --au…” 4 hours ago Up 4 hours k8s_kube-scheduler_kube-scheduler-docker-desktop_kube-system_ee4c94eb845abf1878fb3c4c489b1365_5
92a9de6cc5b3 a301be0cd44b “kube-apiserver --ad…” 4 hours ago Up 4 hours k8s_kube-apiserver_kube-apiserver-docker-desktop_kube-system_2085f5be68201a12aeffb940f7ba4272_3
3d5bde9f0d77 0369cf4303ff “etcd --advertise-cl…” 4 hours ago Up 4 hours k8s_etcd_etcd-docker-desktop_kube-system_c7cc6a3c3118f127f5fd469ef69477e0_3
84f9b65a92bf k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_etcd-docker-desktop_kube-system_c7cc6a3c3118f127f5fd469ef69477e0_3
adc241a8f00f k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_kube-scheduler-docker-desktop_kube-system_ee4c94eb845abf1878fb3c4c489b1365_3
cc8c5b29881f k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_kube-controller-manager-docker-desktop_kube-system_07d42b7bf3823b30f57219558fcb55e2_3
826d3142b146 k8s-gcr-io/pause:3.2 “/pause” 4 hours ago Up 4 hours k8s_POD_kube-apiserver-docker-desktop_kube-system_2085f5be68201a12aeffb940f7ba4272_3

Futhermore, how can i access it ?
I tried, on a random K8s container, the usual :“docker exec -it xxx /bin/bash”, but if fails since bash seems not installed (or not in this path).

Thanks for your help