docker - Docker 不使用代理运行
问题描述
我需要你的帮助,
我的 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
推荐阅读
- c# - Entity Framework 6.自动截断超过DB Field Length的字符串字段
- python-3.x - 计算分组值的百分比
- python - 如何在 FastAPI-login 中注销?
- r - 如何在R中的条件组内随机抽样
- xdp-bpf - 无法使用 XDP 丢弃传出流量
- python-3.x - 如何阻止用户输入但也在 Python 上收听它
- c++ - 在 Visual Studio 2019 上进行 GTK3 开发
- replace - PHP:如何str_replace一个html字符串,但不在某些标签内
- c# - 将 wpf 中的新用户控件停靠到 DockPanel 的问题
- java - 不同语言和设备之间的请求速度不同