At first, there was no problem at all. Docker was running in good condition. And I can build Dockerimage at local MacBook. Then sunddenly,when I wanted to build a new Dockerimage,it reported that “ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:58950. Is the docker daemon running?”. I catch docker info in the terminal, it showed that Client was okay, but Server showed the same Error. Before the problem occured, I tried to minikube stop, but terminal got stunk. So I directly forced Docker Desktop to stop the service. Then something went wrong. I tried to restart Docker Desktop but it won’t work. I searched the problem online, and I found a solution: echo $DOCKER_HOST showed : tcp://127.0.0.1:58950. Then, I used the command unset DOCKER_HOST
, and Docker resumed normal operation without showing any more errors. I want to know why this happened. Because command ‘Docker Info’ shows a warning:“WARNING: daemon is not using the default seccomp profile”
Isn’t it a minikube issue rather than Docker? Docker will not create an envrionment variiable to change itself. Minikube probably saved the environment variable in a bashrc file or profile file. Why it happened, I have no idea. Maybe it was something else, but most likely not Docker. If you want to join the Minikube community, they have a community webpage