我正在尝试从托管在本地网络上并使用本地计算机 /etc/hosts 文件指向的私有注册表部署映像。
我收到如下分辨率错误:
Failed to pull image "gitlab.example.com:5050/group/project:latest": rpc error: code = Unknown desc = failed to resolve image
我的 /etc/hosts 文件包含:
192.168.1.100 gitlab.example.com
使用 docker 拉/推非常好,因为使用 /etc/hosts 解决了
我已经尝试编辑 coredns 的 corefile 来解决问题,但它不起作用。
有人可以在这里指出我正确的方向吗?