2016-01-11 144 views
1

我刚刚安装了Docker工具箱1.9.1(只有Docker本身和Kitematic,因为我已经安装了用于Windows的VirtualBox和Git)。点击Docker快速入门终端图标不起作用,所以我不得不按照建议将它与C:\Program Files (x86)\Git\bin\bash.exe关联起来。现在,它开始很好,但我无法运行docker命令:在Windows上运行docker shell

enter image description here

Kitematic工作得很好,但我需要的外壳。我如何解决它?

回答

4

检查已安装docker-machine.exe(或copy the latest released one in your %PATH%)并使用它,而不是快速入门。
从一个普通CMD会话:

# find the name of the machine created. 
docker-machine ls 
docker-machine env --shell cmd <nameOfTheMachine> 
docker machine ssh <nameOfTheMachine> 

你是后壳是由VirtualBox的管理Linux的TinyCore boot2docker.iso图像提供的一个。
不是您的Windows主机上安装的git-bash

1

这是另一种选择。创建以下docker.cmd批:

cd "%ProgramFiles%\Docker Toolbox" 

"%ProgramFiles(x86)%\Git\bin\bash.exe" --login -i "%ProgramFiles%\Docker Toolbox\start.sh" 

现在你需要启动default VM在Oracle的VirtualBox管理器(当您安装Windows泊坞窗自动创建):

enter image description here

,然后批:

enter image description here

相关问题