Dns 码头工人和木偶

Dns 码头工人和木偶,dns,puppet,docker,Dns,Puppet,Docker,我已经创建了一个安装了puppet的docker容器。我想通过puppet代理-t启动puppet运行,其中服务器已在/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 t

我已经创建了一个安装了puppet的docker容器。我想通过
puppet代理-t
启动puppet运行,其中服务器已在
/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主机名执行
dig
操作时,确实会返回一条有效记录。所以我不确定为什么会出现dnsdomainname错误。任何帮助都将不胜感激

我知道我做错了什么。我必须在我的/etc/hosts文件中为映射到本地主机的容器IP添加一个条目。

您使用的是哪个版本的docker?