我需要設置公司代理,以便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) –