用Azure中国的源,无需额外的配置

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh --mirror AzureChinaCloud

用阿里云的源

先通过ssh连接斐讯N1,编辑“/etc/apt/sources.list”

debian用户用这些地址:

deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free

deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free

deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free

deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

ubuntu 用这些地址:

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse

保存后更新下系统

apt-get update
apt-get upgrade

armbian安装docker

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh –mirror Aliyun

以上步骤调用阿里云加速,但还是会要等一段时间,看上去像卡住 [s-37] 
这时候打开浏览器登录“dev.aliyun.com”,在后台左侧列表找“镜像加速器”。好像不同账户可能地址会不同?找到那个地址就对了!
然后通过ssh执行:

mkdir -p /etc/docker

tee /etc/docker/daemon.json <<-'EOF'

{

“registry-mirrors”: [“https://加速镜像地址”]

}

EOF

systemctl daemon-reload

systemctl restart docker