Chef-Client在厨师配置期间无法获得红宝石宝石

时间:2015-05-12 17:30:58

标签: ruby docker chef

我正在关注厨师博客:https://www.chef.io/blog/2014/11/12/chef-provisioning-infrastructure-as-code/ 在尝试命令 chef-client -z <myenv>.rb,它失败并出现以下异常

Running handlers:
[2015-05-12T08:58:25-07:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-12T08:58:25-07:00] ERROR: Exception handlers complete
[2015-05-12T08:58:25-07:00] FATAL: Stacktrace dumped to /scratch/ChefWorkstation/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.536536008 seconds
[2015-05-12T08:58:25-07:00] ERROR: cannot load such file -- chef/provisioning/docker_driver
[2015-05-12T08:58:27-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

如果我试试, chef gem listchef gem which chef/provisioning/docker_driver分别显示列出的gem和路径

有人可以帮忙吗。

1 个答案:

答案 0 :(得分:0)

问题是因为我以sudo的身份运行命令。但如果我不使用sudo,我会看到docker问题。但是,此问题已得到解决

相关问题