Error: Connection refused connecting to locahost - Berkshelf - Test Kitchen

Error: Connection refused connecting to locahost - Berkshelf - Test Kitchen

当 运行 kitchen converge 在 Test Kitchen 上使用 Dokken driverInspec 作为验证者时,我遇到了问题。

开始解析 cookbook 依赖项 7.0.6 时出现错误

Resolving cookbook dependencies with Berkshelf 7.0.6... [2019-06-18T15:17:56+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/apache2/3.1.0, retry 1/5 [2019-06-18T15:17:56+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/alternatives/0.1.1, retry 1/5 [2019-06-18T15:18:01+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/apache2/3.1.0, retry 2/5 [2019-06-18T15:18:01+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/alternatives/0.1.1, retry 2/5

有什么想法吗?

谢谢!

我通过在 ~/.chef/knife.rbchef_server_url 'https://chef-server-url'

中添加新参数解决了这个问题