按照文档 https://lug.ustc.edu.cn/wiki/mirrors/help/docker
新版的 Docker 使用 /etc/docker/daemon.json 加入以下内容即可配置 mirror
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}
但是 pull 个 redis 都会卡住
楼主现在只能配置 proxy 使用,方法是在 /etc/systemd/system/docker.service.d/override.conf 中加入 [Service] Environment="HTTPS_PROXY=https://proxy.example.com:443/"
对这种方法也不是很满意,不想用的时候还要把这个文件或把内容注释移走并重启服务,有没有临时让 docker daemon 挂代理的方法
