Docker和Puppet

时间:2013-10-01 21:55:29

标签: dns puppet docker

我已经创建了一个安装了木偶的docker容器。我想通过puppet agent -t开始在/etc/puppet/puppet.conf文件中配置服务器的木偶游戏。

我收到此错误:

dnsdomainname: Name or service not known
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
Exiting; no certificate found and waitforcert is disabled

但是当我对puppet master主机名执行dig时,我确实收到了有效记录。所以我不确定为什么我得到dnsdomainname错误。任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

我弄清楚我做错了什么。我必须在/ etc / hosts文件中放入一个条目,用于容器的IP映射到localhost。