lxq.link
postscategoriestoolsabout

设置docker国内镜像源

创建或修改 /etc/docker/daemon.json 文件

# linux
vi /etc/docker/daemon.json

# mac
vi ~/.docker/daemon.json

# 更新为以下内容
{
    "registry-mirrors": ["https://3laho3y3.mirror.aliyuncs.com"]
}

# 重启 docker
# linux
systemctl restart docker.service

windows 可在docker gui配置

Settings -> Docker Engine

Snipaste_2021-01-25_23-28-26.png


其他常用的国内镜像还包括:

*http://hub-mirror.c.163.com

*http://f1361db2.m.daocloud.io

2020-04-18