UNRAID docker加速

由于unraid的docker镜像是存放在github,所以加载速度非常慢。我们可以用阿里云的镜像来加速docker。

1,注册阿里云,然后进入

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

找到加速器地址,https://xxx.mirror.aliyuncs.com,其中xxx代表你专属的加速地址

2,进入unraid Terminal后台,输入

mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https:/xxx.mirror.aliyuncs.com"]
}
EOF

3,使每次重启后依然生效

vi /boot/config/go

然后将如下命令加入go文件,不会用vi编辑器的自行百度

tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://xxx.mirror.aliyuncs.com"]
}
EOF

4,重启docker

/etc/rc.d/rc.docker restart

有任何问题给我留言,enjoy~

0 0 投票数
文章评分
订阅评论
提醒

0 评论
内联反馈
查看所有评论