无法在docker容器上安装chef-server

时间:2015-09-26 18:37:57

标签: docker chef

我无法在docker容器(Ubuntu 14.04 x86_64)上安装chef-server(chef-server-core_12.0.8-1_amd64.deb)。 当运行chef-server-ctl重新配置时,它失败并出现以下错误:

Error executing action run on resource 'execute[/opt/opscode/bin/private-chef-ctl start rabbitmq]'
Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
STDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist
STDERR:
---- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----
Ran /opt/opscode/bin/private-chef-ctl start rabbitmq returned 1

注意:在开始安装之前,我在容器内完成了以下步骤:

dpkg-divert --local --rename --add /sbin/initctl
ln -sf /bin/true /sbin/initctl
sysctl -w kernel.shmmax=17179869184

是否有任何其他解决方法可以在docker容器上使用chef-server。

0 个答案:

没有答案