ubuntu使用国内源安装docker
程序员文章站
2022-07-15 17:12:25
...
- 安装软件包
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
2.添加软件源的GPG**(我用的中科大)
中科大
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
阿里源
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
3.向 source.list 中添加Docker软件源
中科大
sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
阿里源
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
4.更新& 安装
sudo apt-get update
sudo apt-get install docker-ce
也可以指定版本安装
sudo apt-get install docker-ce=<VERSION>
上一篇: Linux内核获取系统时间
下一篇: U盘启动盘制作
推荐阅读
-
Linux/Ubuntu Git从安装到使用的方法步骤
-
Docker安装和简单使用入门教程
-
docker上安装使用mysql镜像
-
[视频教程] ubuntu系统下以守护进程方式安装使用Redis
-
ASP.NET Core部署前期准备 使用Hyper-V安装Ubuntu Server 16.10
-
Ubuntu下安装Docker教程
-
Ubuntu15.10安装docker和docker-compose教程
-
Ubuntu 16.04中Docker的安装和代理配置教程
-
ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决
-
Linux中Docker安装后如何使用Docker容器