很不幸,我无法在代理后使用我的docker,我按照谷歌搜索的建议去做,但是当我运行sudo docker run hello-world
时,我得到了以下错误:
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-
1.docker.io/v2/: Proxy Authentication Required.
See 'docker run --help'.
这是我的'/etc/systemd/system/docker.service.d/http-proxy.conf'文件:
[Service]
Environment="HTTP_PROXY=http://user:pass@127.0.0.1:8800/"
Environment="HTTPS_PROXY=https://user:pass@127.0.0.1:8800/"
我的“etc/default/docker”文件:
export http_proxy="http://127.0.0.1:3128/"
export https_proxy="http://127.0.0.1:3128/"
export HTTP_PROXY="http://127.0.0.1:3128/"
export HTTPS_PROXY="http://127.0.0.1:3128/"
问题是什么?谢谢:)
daemon reload
和 dockerrestart
命令? - Shettyh