首页 > 解决方案 > 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 和经过身份验证的代理...

标签: dockerauthenticationvirtualboxlinux-mint

解决方案


在运行 docker run 命令之前在您的环境中设置代理...

设置 HTTPS_PROXY= http://user:password@proxy_name_or_ip:proxy_port

例如设置 HTTPS_PROXY= http://myusername:Password1@proxy.local:8080


推荐阅读