With using docker client with docker desktop, running docker command throws connection to server error. One can avoid using docker desktop or other GUI solutions like rancher desktop , podman desktop among others by using minikube as the back engine for docker client. This work by injecting or setting some variables on the host Operating system.