前言
麒麟V10系统,存在两种发行版:基于Ubuntu 、基于CentOS
基于Ubuntu
软件可使用 Ubuntu 20.04 (focal) 的软件包
软件源采用阿里云软件源
apt源:https://mirrors.aliyun.com/ubuntu/dists/focal/
docker源:https://mirrors.aliyun.com/docker-ce/linux/ubuntu
创建Docker软件源
添加GPG key
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
添加软件源
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
基于CentOS
软件可使用 CentOS 7 的软件包。
软件源采用清华大学软件源
yum源:https://mirror.tuna.tsinghua.edu.cn/centos-vault/centos/7/extras
docker源: https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7
创建Docker软件源
编辑软件源
vi /etc/yum.repos.d/docker-ce.repo
输入以下内容
[centos-extras]
name=Centos extras - $releasever - $basearch
baseurl=https://mirror.tuna.tsinghua.edu.cn/centos-vault/centos/7/extras/x86_64/
enabled=1
gpgcheck=0
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/source/stable
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/source/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/gpg
安装DockerCE
yum update
yum install docker-ce
或
apt update
apt install docker-ce
安装插件
apt install docker-compose-plugin
apt install docker-buildx-plugin
离线安装
如果需要离线环境安装,则自行下载rpm或deb包,进行安装
Docker软件下载地址
发行版 | 地址 |
---|---|
CentOS | https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/Packages/ |
Ubuntu | https://mirrors.aliyun.com/docker-ce/linux/ubuntu/dists/focal/pool/stable/amd64/ |
以CentOS举例,需要如下软件包
软件包名称 |
---|
containerd.io-1.6.31-3.1.el7.x86_64.rpm |
docker-buildx-plugin-0.13.1-1.el7.x86_64.rpm |
docker-ce-26.1.3-1.el7.x86_64.rpm |
docker-ce-cli-26.1.3-1.el7.x86_64.rpm |
docker-ce-rootless-extras-26.1.3-1.el7.x86_64.rpm |
docker-compose-plugin-2.26.1-1.el7.x86_64.rpm |
依赖软件下载地址
发行版 | 地址 |
---|---|
CentOS | https://mirror.tuna.tsinghua.edu.cn/centos-vault/centos/7/extras/x86_64/Packages/ |
Ubuntu | https://mirrors.aliyun.com/ubuntu/dists/focal/ |
以CentOS举例,需要如下依赖包
依赖包名称 |
---|
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm |
... 其他依赖从上述地址自行获取 ... |
文章作者:DOTATONG
发布日期:2024-07-17
评论