Unable to run embedded Kubernetes on Docker Desktop Mac

Yeah, as far as I remember, ~ it should be pointed inside my current user’s dir and it points there for sure till I’m starting to work with su.

I have to always use su to work with Docker Desktop, because otherwise I’m unable to run commands for Docker/Kubernates under my regular user, despite it has admin rights.

When I type, for example, docker info I’m getting zsh: command not found: docker. But under sudo it runs fine. I googled a lot in searching of how to overcome this problem and even created the topic, which is not answered yet: Enable docker commands run without sudo

So if my guess is right, the problem is that when I run Kubernete’s commands under su, I cannot get correct output from kubectl, because of its searches it’s config file inside the root’s home dir and not in my homedir, where the right version is actually placed. So thats why my temp fix with KUBECONFIG=/Users/Me/.kube/config actually worked.

But the new question is what I have to do now to make my setup working right… It turns out that now I need to keep both configurations (in root and user) equal each other to avoid side-effects.