我需要设置公司代理,以便Docker可以从公共注册表下载图片。Docker:设置代理下载图片
$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: dial tcp: lookup index.docker.io: no such host
我使用的是Ubuntu 12.04机器。我发现this answer,但在Ubuntu 12.04中不存在systemctl
。我怎样才能做到这一点?
谢谢。
谷歌结果#4“泊坞窗设置代理”:http://nknu.net/running-docker-behind-a-proxy-on-Ubuntu-14-04/ –
谢谢。它的工作原理。将它发布为答案,我将接受 –
[无法在代理后面下载Docker镜像](https:/ /stackoverflow.com/questions/23111631/cannot-download-docker-images-behind-a-proxy) –