Docker 仓库和镜像
由于中国网络原因,在pull Image 时,从Docker Hub下载会很慢。
可使用一些国内的镜像(docker hub mirror)增加速度。
mirrors 方式目前已不太好用,暂行建议使用proxy方式
--------------------------------------------------------------------------------------------------------
Docker proxy 代理方式
1.Docker 配置
mkdir -p /etc/systemd/system/docker.service.d touch /etc/systemd/system/docker.service.d/proxy.conf vi /etc/systemd/system/docker.service.d/proxy.conf [Service] Environment="HTTP_PROXY=http://host:port" Environment="HTTPS_PROXY=http://host:port" Environment="NO_PROXY=localhost,127.0.0.1,.example.com,192.168.2.0/24" systemctl daemon-reload systemctl restart docker docker info