1. 程式人生 > >如何處理Docker的錯誤消息request canceled:Docker代理問題

如何處理Docker的錯誤消息request canceled:Docker代理問題

ogl shell img 下載到本地 apply nta cti 遇到 amp

在本地安裝Kubernetes時,遇到錯誤消息:

request canceled while waiting for connection(Client.Timeout exceeded while awaiting headers)

技術分享圖片

這個原因是Docker應用沒有正確設置代理。在Mac上設置代理非常方便:

Configure the proxies used by Docker to pull images.

選擇Manual proxy configuration, 即手動設置。

設置完之後,點擊按鈕Apply & Restart:

技術分享圖片

之後在shell裏使用命令行docker pull gcr.io/google_containers/pause-amd64:3.1可以成功把鏡像下載到本地。

技術分享圖片

使用命令docker images,能夠查看到成功安裝的鏡像:pause-amd64

技術分享圖片

要獲取更多Jerry的原創文章,請關註公眾號"汪子熙":

技術分享圖片

如何處理Docker的錯誤消息request canceled:Docker代理問題