叨嗒嗵 - ky10
type: channel
link: https://www.dotatong.com/index.php/tag/ky10/
items: 麒麟V10系统安装Docker CE

麒麟V10系统安装Docker CE
type: item
date: 2024-07-17T09:16:00+00:00
description: 前言麒麟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 keycurl -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/extrasdocker源: 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 base…