前言
麒麟V10系统,软件可直接安装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 install docker-ce
离线安装
如果需要离线环境安装,则自行下载rpm包,进行安装
Docker软件下载地址:https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/Packages/
软件包名称 |
---|
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 |
依赖软件下载地址:https://mirror.tuna.tsinghua.edu.cn/centos-vault/centos/7/extras/x86_64/Packages/
软件包名称 |
---|
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm |
... 其他依赖从上述地址自行获取 ... |
文章作者:DOTATONG
发布日期:2024-07-17
评论