2016-01-11 139 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

相關問題