Docker Pull 超时?自建镜像加速器终极指南
使用 Docker 时,经常遇到以下报错
Error response from daemon: Get "https://registry-1.docker.io/v2/":
net/http: TLS handshake timeout
或者:
error pulling image configuration: download failed after attempts=6:
dial tcp 54.198.211.102:443: i/o timeout
在国内网络环境下,docker pull 几乎必然超时。
公共镜像站要么已失效、要么严重限速,自建加速器才是长久之计。
本文提供两种方案,适用于不同场景。