我正在尝试使用从https://github.com/docker/docker-registry拍摄的图像来设置私有Docker注册表
只需运行:
docker run -p 5000:5000 registry
我只能从本地主机从该存储库拉入/推送到该存储库,但是如果我尝试从另一台计算机(使用同一LAN上的私有地址)访问它,则会失败并显示错误消息:
*2014/11/03 09:49:04 Error: Invalid registry endpoint https ://10.0.0.26:5000/v1/':
Get https:// 10.0.0.26:5000/v1/_ping: Forbidden. If this private
registry supports only HTTP or HTTPS with an unknown CA certificate,
please add `--insecure-registry 10.0.0.26:5000` to the daemon's
arguments. In the case of HTTPS, if you have access to the registry's
CA certificate, no need for the flag; simply place the CA certificate
at /etc/docker/certs.d/10.0.0.26:5000/ca.crt*
让我发疯的是我可以使用:curl 10.0.0.26:5000
和/或成功访问它
curl 10.0.0.26:5000/v1/search
我也不明白我应该在哪里以及如何通过--insecure-registry
国旗。