使用 Docker run 命令时指定代理参数。你可以在运行容器时使用 -e 选项来设置 http_proxy 和 https_proxy 环境变量。

docker run -e http_proxy=http://myproxy:8080 -e https_proxy=http://myproxy:8080 myimage

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注