国产鲲鹏服务器安装docker出现一些错误的解决方案
1. 获取阿里云仓库的镜像源文件失败
Errors during downloading metadata for repository 'docker-ce-stable': - Status code: 404 for https://mirrors.aliyun.com/docker-ce/linux/centos/10/aarch64/stable/repodata/repomd.xml (IP: 157.119.175.222)`
参考来源:https://www.cnblogs.com/liumou-site/p/12630069.html
找到/etc/yum.repos.d/docker-ce.repo文件,修改里面的镜像源路径。
文件如下,
是修改后的:
[docker-ce-stable]
name=Docker CE Stable - aarch64
baseurl=https://download.docker.com/linux/centos/7/aarch64/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo aarch64
baseurl=https://download.docker.com/linux/centos/7/debug-aarch64/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/7/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test]
name=Docker CE Test - aarch64
baseurl=https://download.docker.com/linux/centos/7/aarch64/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo aarch64
baseurl=https://download.docker.com/linux/centos/7/debug-aarch64/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/7/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly]
name=Docker CE Nightly - aarch64
baseurl=https://download.docker.com/linux/centos/7/aarch64/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo aarch64
baseurl=https://download.docker.com/linux/centos/7/debug-aarch64/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/7/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
我的服务器版本是aarch64## 2. 安装Docker报错如下:
file /usr/share/man/man8/mount.fuse.8.gz from install of fuse-common-3.2.1-12.el8.aarch64 conflicts with file from package fuse-help-2.9.9-6.ky10.aarch64
解决方案:
首先输入命令:yum clean packages 清除所有缓存
然后:yum erase docker package fuse-help-2.9.9-6.ky10.aarch64 删除掉对应的文件
最后:yum install docker 再次安装docker即可,
安装成功后, 启动docker服务:sudo service docker start,
别忘了设置开机自启:
sudo systemctl enable docker