0

我正在尝试使用 Chef 配置 Docker 容器,我正在使用刀独奏和图书管理员厨师。

我得到了 docker cookbook 并创建了一个测试配方,但是当执行knife solo bootstrap nodo@192.168.150.78返回时

Enter the password for nodo@192.168.1.7: 

Starting Chef Client, version 12.6.0
Compiling Cookbooks...

================================================================================
Recipe Compile Error
================================================================================

Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe default for cookbook docker


Running handlers:
[2016-01-22T13:54:17-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-22T13:54:17-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 00 seconds
[2016-01-22T13:54:17-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-01-22T13:54:17-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-01-22T13:54:17-05:00] ERROR: could not find recipe default for cookbook docker
[2016-01-22T13:54:17-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.

和 cookbook/docker/recipe 文件夹和 default.rb 文件被删除。

为了测试,我尝试使用 apache 食谱,这很有效。

我可以解决这个问题吗?

4

1 回答 1

1

最新版本的 Docker 食谱不包含默认配方。请按照其 README 了解如何使用它。

于 2016-01-22T20:16:34.550 回答