【发布时间】:2015-08-28 15:22:41
【问题描述】:
我的 Docker、chefDk 和工作站都在同一个节点上,厨师服务器在不同的机器上
运行后
knife container init demo/apache2 -r recipe["some_recipe"]
它创建一个带有 Ubuntu 映像的 demo/apache2 标签名称的 Docker 文件和 Docker 上下文。
之后,当我运行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)
【问题讨论】:
标签: docker chef-infra