一个是使用了docker-machine创建的虚拟机
eval "$(docker-machine env default)"
使用docker info,可以看到如下信息
还有一个是,在其他终端打开的,没有执行过docker-machine的环境变量
谁能解释一下这两个有什么区别啊?这两个下面的连镜像和容器都是不一样的!!!
which docker//会发现是同一个文件。
黄舟2017-04-27 09:03:54
Visual inspection: One is Docker in Docker for Mac when you install it, and the other is Docker in Docker Machine. Because docker-CLI comes from Docker for Mac, the default connection is Docker on Docker for Mac, and the connection configuration of docker-CLI should be overwritten after Docker Machine is started. The guess is this.