Docker 不使用代理运行

标签 docker authentication virtualbox linux-mint

这个问题在这里已经有了答案:





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/

相关文章:

mysql - 使用sequelize和docker-compose从 Node 应用程序连接到MySQL DB

node.js - REST 客户端 POSTMan 的 nodeSSPI 身份验证问题

CSS 样式表未在 VirtualBox Ubuntu Guest 上使用 DJango+Apache+Firefox 的浏览器中更新

linux - Virtualbox 启动挂载不会卸载

windows - Eclipse,导入项目但不复制

amazon-web-services - AWS何时必须更新任务定义

python - Docker [Errno 111] 连接调用失败 ('127.0.0.1' , 6379)

logging - 如何不创建 docker 容器日志?

php - 构建一个简单的 RESTful api

laravel - 仅在 Laravel 中公开某些授权路由