vim /lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd -H fd://  --registry-mirror=https://3hn88wev.mirror.aliyuncs.com

systemctl daemon-reload

systemctl restart docker.service

# 阿里云
sed -i 's@ExecStart.*@ExecStart=/usr/bin/dockerd --registry-mirror=https://3hn88wev.mirror.aliyuncs.com @g' /lib/systemd/system/docker.service # 网易
--registry-mirror=http://hub-mirror.c.163.com

# ustc
--registry-mirror=https://docker.mirrors.ustc.edu.cn

# docker cn
--registry-mirror=https://registry.docker-cn.com
 
 
CENTOS: /etc/sysconfig/docker
UBUNTU: /etc/default/docker
05-25 18:59