One is a virtual machine created by docker-machine
eval "$(docker-machine env default)"
Using docker info, you can see the following information
Another is that the environment variable of docker-machine has not been executed when it is opened in other terminals.
Who can explain the difference between the two? The two below even mirror images and containers are different! ! !
Which docker// will find the same file.
Visual inspection: one is that you install the Docker in Docker for Mac, and the other is that you install the Docker in Docker Machine. Because the docker-CLI is from the Docker for Mac, the default connection is the Docker on the Docker for Mac, and Docker Machine should overwrite the docker-CLI connection configuration after startup. The guess is this.