尝试添加 docker 容器时出现 SystemD 错误
SystemD error on tyring to add docker container
我正在尝试 puppetlabs docker module。
我已将以下代码作为测试用例添加到我的 puppetmaster 中:
docker::run { 'helloworld':
image => 'base',
command => '/bin/sh -c "while true; do echo hello world; sleep 1; done"',
}
在我的傀儡客户端上,我 运行 正在使用 Amazon Linux AMI。在做木偶 运行 时,我收到以下错误:
Error:
/Stage[main]/Base/Docker::Run[helloworld]/Service[docker-helloworld]:
Provider systemd is not functional on this host
有道理,Amazon Linux 没有 Systemd。解决这个问题的正确方法是什么?有没有办法让 docker 模块在没有 systemd 的情况下工作?
我正在尝试 puppetlabs docker module。
我已将以下代码作为测试用例添加到我的 puppetmaster 中:
docker::run { 'helloworld':
image => 'base',
command => '/bin/sh -c "while true; do echo hello world; sleep 1; done"',
}
在我的傀儡客户端上,我 运行 正在使用 Amazon Linux AMI。在做木偶 运行 时,我收到以下错误:
Error: /Stage[main]/Base/Docker::Run[helloworld]/Service[docker-helloworld]: Provider systemd is not functional on this host
有道理,Amazon Linux 没有 Systemd。解决这个问题的正确方法是什么?有没有办法让 docker 模块在没有 systemd 的情况下工作?