我正尝试在GNU/Linux机器上使用kitchen-docker驱动程序。我已经使用chef gem install命令安装了kitchen-docker gem。
这是我的.kitchen.yml文件的摘录:
---
driver:
name: docker
provisioner:
name: chef_zero
verifier:
name: inspec
platforms:
- name: centos-7.2
driver_config:
image: centos:7.2
platform: centos
suites:
- name: zaz
run_list:
- recipe[foo::bar]
...
...我使用Docker repositories for Centos在它的最新版本上安装了Docker。服务正在运行,Docker在我的路径中。但是,当我尝试使用.kitchen.yml运行一个简单kitchen list时,我得到了这个错误:
[FakeyMcFakeFace@workstation foo]$ kitchen list
>>>>>> ------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为什么码头没有被厨房认出?如果我运行diagnose -all选项,我只看到它在依赖项检查中失败:
backtrace:
- "/home/FakeyMcFakeFace/.chefdk/gem/ruby/2.3.0/gems/kitchen-docker-2.6.0/lib/kitchen/driver/docker.rb:93:in
`rescue in verify_dependencies'"这里我漏掉了什么?
发布于 2017-03-16 09:39:49
为了从评论中复制下来,厨房码头现在需要无密码的sudo (如果使用sudo),错误消息是误导性的
https://stackoverflow.com/questions/42808106
复制相似问题