厨房无法识别 docker

Kitchen doesn't recognise docker

问题很简单:

$ 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


编辑

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

我在外面帮忙,找到了解决办法。

docker-machine env default

正在返回:

Error checking TLS connection: Host is not running

解决方案是:

docker-machine start

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

docker-machine env default

现在:

kitchen converge
kitchen verify

按预期工作。