环境 ubuntu18.04 64位
为了解决国内访问一些国外网站慢的问题,本文使用了国内阿里云的镜像。
更换apt包源
这里使用aliyun镜像 https://developer.aliyun.com/mirror/, 为了安全起见,建议备份原来系统默认的 /etc/apt/sources.list 文件
编辑文件 /etc/apt/sources.list,将默认网址 http://archive.ubuntu.com 或 http://cn.archive.ubuntu.com 替换为 http://mirrors.aliyun.com
更新缓存
$ sudo apt-get clean all $ sudo apt-get update
安装Docker
参考官方文档 https://docs.docker.com/engine/install/ubuntu/ 或 aliyun 文档 https://developer.aliyun.com/mirror/docker-ce
Continue reading