简体   繁体   English

如何在Docker机器和Docker for Mac之间切换?

[英]How can I switch between Docker machine and Docker for Mac?

Prior to running 跑步前

eval $(docker-machine env remote)

I was using docker for mac and had environment context for that. 我在Mac上使用docker,并为此设置了环境上下文。 However, after running that command I am now pointing to the remote docker machine. 但是,运行该命令后,我现在指向远程docker计算机。 I understand how to switch between different remotes and say a local docker machine, but it is not clear to me how to switch from a docker machine back to the docker for mac engine. 我知道如何在不同的遥控器之间切换并说本地docker机器,但是我不清楚如何从docker机器切换回mac引擎的docker。

Looks like you can 看起来可以

eval "$(docker-machine env -u)"

which I found from the github issue page . 这是我在github问题页面上找到的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM