我使用Docker版本1.12.2,生成bb80604和VirtualBox 5.1.6.
我能够正确安装Docker ToolBox,但我无法启动默认VM.
我试图按照here给出的指令,但我仍然得到系统找不到指定文件的错误.我没有在系统上启用Hyper-V.
F:\>docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default not found Error open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.
F:\>docker-machine env --shell=cmd
open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.
F:\>docker rm default
An error occurred trying to connect: open //./pipe/docker_engine: The system cannot find the file specified.
我该如何解决这个问题?
最佳答案
看起来你的docker-machine默认机器发生了不好的事情.
@H_403_41@要恢复,请执行以下操作:
docker-machine rm -f default
接下来,打开虚拟机GUI并确保没有与旧的“默认”VM对应的VM,以防万一.如果有,请从那里手动删除它.
现在,再次打开quickstart终端,它应该为您创建一个新的“默认”虚拟机.
或者,您可以像这样创建它:
docker-machine create -d virtualBox --virtualBox-memory 2048 default
此时,您的命令序列应该再次按预期工作.