由于国内镜像docker-hub禁止开放,需要配置镜像代理路径,用以提示拉取速度
bashvim /etc/systemd/system/docker.service.d/http-proxy.conf
其中7890对应代理端口
bash[Service]
Environment="HTTP_PROXY=http://192.168.213.1:7890"
Environment="HTTPS_PROXY=http://192.168.213.1:7890"
重启
bashsudo systemctl daemon-reload sudo systemctl restart docker
生效确认:
bashsystemctl show --property=Environment docker
也可以考虑阿里云的镜像加速
本文作者:lixf6
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!