【问题标题】:Knife Container issue刀箱问题
【发布时间】: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


    【解决方案1】:

    您的服务器证书似乎没有到位。请确保您按照说明正确安装 Chef DK。

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

    【讨论】:

      猜你喜欢
      • 2020-04-08
      • 2011-05-29
      • 1970-01-01
      • 2010-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多