输入如下命令,一起执行:
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
EOF
重启docker服务
[root@localhost docker]# systemctl daemon-reload [root@localhost docker]# systemctl restart docker验证
pull kafka镜像测试,每秒1M的速度下载,明显提速了。注意我这里显示的already exists是之前已经下载过部分组件了,但是最大的那个一直下载不动,卡住了。所以考虑配置镜像加速器。



