When running this command :
docker run --rm -it -v C:\Users<username>.kube:/root/.kube
bash
I found that if I ran it in gitbash it wouldn't properly mount my .kube directory…. The container would start, but if I ran the watch command, I'd get an error about it not being able to connect to localhost:8080
If I tried using unix based paths (eg: /c/users//.kube/ ), it would give errors as well. Wouldn't start the container.
When I used a windows command prompt it worked, but I got prompted by docker desktop to share the folder… had to do a local login.
So, I suggest we tell windows users to do it in the command prompt or powershell and expect Docker Desktop to ask you permission to share your hard drive.
When running this command :
bash
docker run --rm -it -v C:\Users<username>.kube:/root/.kube
I found that if I ran it in gitbash it wouldn't properly mount my .kube directory…. The container would start, but if I ran the watch command, I'd get an error about it not being able to connect to localhost:8080
If I tried using unix based paths (eg: /c/users//.kube/ ), it would give errors as well. Wouldn't start the container.
When I used a windows command prompt it worked, but I got prompted by docker desktop to share the folder… had to do a local login.
So, I suggest we tell windows users to do it in the command prompt or powershell and expect Docker Desktop to ask you permission to share your hard drive.