服务器装Ubuntu20.04Lts Server时,最后勾选了docker做为附加软件,装好后改镜像阿里云加速。
阿里云镜像:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
$ cat /var/snap/docker/796/config/daemon.json
{
"log-level": "error",
"storage-driver": "overlay2",
"registry-mirrors": ["我的阿里云镜像加速地址"]
}
$ sudo service snap.docker.dockerd restart