刀容器问题

时间:2015-02-27 11:11:49

标签: docker chef

我的Docker,chefDk和工作站都位于不同机器上的同一节点和厨师服务器上

跑完之后 knife container init demo/apache2 -r recipe["some_recipe"]

它创建了一个Docker文件和Docker Context,其demo / apache2标签名称包含Ubuntu图像。

在此之后,当我运行knife container build demo/apache2时 它抛出以下错误

[2015-02-27T11:05:32+00:00] INFO: Client key /etc/chef/secure/client.pem is not present - registering
[2015-02-27T11:05:32+00:00] ERROR: SSL Validation failure connecting to host: 10.88.200.224 - hostname does not match the server certificate

================================================================================
Chef encountered an error attempting to create the client "demo-apache2-build"
================================================================================

[2015-02-27T11:05:32+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-02-27T11:05:32+00:00] ERROR: hostname does not match the server certificate
[2015-02-27T11:05:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

1 个答案:

答案 0 :(得分:0)

这看起来像您的服务器证书不到位。请确保按照说明正确安装Chef DK。

http://docs.chef.io/client/install_workstation.html
-->add the missing "client.pem"
--> and then do a "knife ssl check"