简体   繁体   English

厨房无法识别码头工人

[英]Kitchen doesn't recognise docker

The problem is quite simple: 问题很简单:

$ 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

In the log: 在日志中:

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

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

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

EDIT : 编辑

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

I have had helped outside and found the solution. 我曾在外面帮助过,找到了解决方案。

docker-machine env default

Was returning: 正在返回:

Error checking TLS connection: Host is not running

The solution was: 解决方案是:

docker-machine start

And then, copy paste and run the output of: 然后,复制粘贴并运行以下命令的输出:

docker-machine env default

Now: 现在:

kitchen converge
kitchen verify

work as expected. 按预期工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM