gpt4 book ai didi

docker - 来自守护进程 : Get http s://registry-1. docker.io/v2/的错误响应:proxyconnect tcp:tls:第一条记录看起来不像 TLS 握手

转载 作者:行者123 更新时间:2023-12-05 08:54:17 24 4
gpt4 key购买 nike

我在 Windows 7 上安装了 virtual box 5.2。我按照 docker 快速入门指南安装了 docker。 docker for windows

因为我的机器在公司代理后面,所以我设置了

HTTP_PROXY=http://xxx:port
HTTPS_PROXY=https://xxx:port
NO_PROXT="192.168.99.1/24"

通过在创建 docker 机器时传递它,并在机器启动后进行导出。'docker-machine create -d virtualbox --engine-env HTTP_PROXY="http://xxx:80"--engine-env HTTPS_PROXY="https://xxx:80"--engine-env NO_PROXY= “192.168.99.1/24”默认值

docker run hello-world 显示以上错误。

最佳答案

只需将 HTTPS_PROXY=https://xxx:port 更改为 HTTPS_PROXY=http://xxx:port

另外,如果使用/etc/systemd/system/docker.service.d目录下的配置文件,则需要修改https-proxy.conf中已有的内容 文件。之后,运行以下命令使其生效:

systemctl daemon-reload
systemctl restart docker.service

那么你的问题应该就解决了。 :)

关于docker - 来自守护进程 : Get http s://registry-1. docker.io/v2/的错误响应:proxyconnect tcp:tls:第一条记录看起来不像 TLS 握手,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50392780/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com