厨房不承认码头

时间:2016-04-26 13:10:36

标签: docker chef test-kitchen

问题很简单:

$ kitchen converge
-----> Starting Kitchen (v1.6.0)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: You must first install the Docker CLI tool http://www.docker.io/gettingstarted/
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

在日志中:

Message: Expected process to exit with [0], but received '1'
---- Begin output of sudo -E docker >> /dev/null 2>&1 ----
STDOUT:
STDERR:
---- End output of sudo -E docker >> /dev/null 2>&1 ----
Ran sudo -E docker >> /dev/null 2>&1 returned 1

虽然sudo -E docker >> /dev/null 2>&1; echo $?0

  • 厨房version 1.6.0
  • 通过1.10.3, build 20f81dd
  • 安装的Docker homebrew

编辑

---
driver:
  name: docker 
  binary: docker #also tried with /usr/local/bin/docker
  privileged: true 

1 个答案:

答案 0 :(得分:0)

我曾在外面帮助并找到了解决方案。

docker-machine env default

回来了:

Error checking TLS connection: Host is not running

解决方案是:

docker-machine start

然后,复制粘贴并运行输出:

docker-machine env default

现在:

kitchen converge
kitchen verify

按预期工作。