刀独奏正在删除cooklbook / docker / recipes /文件夹 - Docker配置与Chef

时间:2016-01-22 19:12:42

标签: chef knife knife-solo librarian

我正在尝试使用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 cookbook,这很有效。

我能解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

the Docker cookbook的最新版本不包含默认配方。请按照自述文件查看如何使用它。