这个问题在这里已经有了答案:
x509: certificate signed by unknown authority - both with docker and with github
(3 个回答)
3年前关闭。
我需要你的帮助,
我的 docker 不在我的企业上运行,我不知道该怎么办
kaue default # docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9bb5a5d4561a: Pulling fs layer
docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/e3/e38bc07ac18ee64e6d59cf2eafcdddf9cec2364dfe129fe0af75f1b0194e0c96/data?verify=1528483070-KGbywXnskgTKu5B9AuTdFPQdYjs%3D: x509: certificate signed by unknown authority.
See 'docker run --help'
.
我的工作中有一个 Windows 7 和经过身份验证的代理...
最佳答案
在运行 docker run 命令之前在您的环境中设置代理...
设置 HTTPS_PROXY= http://user:password@proxy_name_or_ip:proxy_port
例如
设置 HTTPS_PROXY= http://myusername:Password1@proxy.local:8080
关于Docker 不使用代理运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50766086/