Skip to content
Discussion options

You must be logged in to vote

1、配置的镜像源 https://docker.nju.edu.cn 测试过是有效的;
2、resolv.conf 配置DNS解析顺序,我觉得应该调整下顺序,优先公共的,说明如下
# 配置 A:本地 DNS 优先
127.0.0.53 → 8.8.8.8 → 114.114.114.114 → 223.5.5.5
# 配置 B:公共 DNS 优先
8.8.8.8 → 114.114.114.114 → 223.5.5.5 → 127.0.0.53
3、修改 daemon.json 后重启才能生效
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo systemctl enable docker
4、修改 resolv.conf 后最好也重启
sudo systemctl restart systemd-resolved

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rootsteven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants