ubuntu使用国内源安装docker
2022/4/28 7:14:38
本文主要是介绍ubuntu使用国内源安装docker,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
- 安装软件包
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>
这篇关于ubuntu使用国内源安装docker的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-28duckdns docker
- 2024-03-21docker add host
- 2024-03-14denied: requested access to the resource is denied docker push
- 2024-03-07docker graylog
- 2024-03-05Docker容器实战(00)-基础命令大全
- 2024-03-01dockerd-entrypoint.sh
- 2024-02-23linux mint install docker
- 2024-01-18angular docker
- 2024-01-10优雅而强力地卸载docker-desktop
- 2024-01-09完蛋,我被挖矿木马包围了|使用 TLS 连接 Docker