Repository extras is listed more than once in the configuration
Adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Repository extras is listed more than once in the configuration
Error: No matching repo to modify: docker-ce-edge.
Repository extras is listed more than once in the configuration
Docker CE Stable - x86_64 0.0 B/s | 0 B 00:03
Errors during downloading metadata for repository 'docker-ce-stable':
- Curl error (7): Couldn't connect to server for https://mirrors.aliyun.com/docke ... repodata/repomd.xml []
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Repository extras is listed more than once in the configuration
Error: No matching repo to modify: docker-ce-edge.
Failed to start docker.service: Unit docker.service not found.
move docker data to /www/server/docker ...
Failed to stop docker.service: Unit docker.service not loaded.
mv: cannot stat '/var/lib/docker': No such file or directory
Created symlink /etc/systemd/system/getty@tty1.service → /dev/null.
Failed to enable unit: Unit file docker.service does not exist.
Failed to start docker.service: Unit docker.service not found.
您好,上面是安装失败的原因,使用阿里云centos8 的安装源(当时centos官方还未移除安装源到vault.centos.org)安装docker的时候报错,您可以使用下面命令修改下安装源
- sed -e 's|^mirrorlist=|#mirrorlist=|g' \
- -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|' \
- -i.bak \
- /etc/yum.repos.d/CentOS-*.repo
复制代码
然后升级到centos8 stream版本后再安装docker
Centos 8官方已于2021年12月31日以后停止Centos 8支持、转至Centos 8 Stream项目支持
详细说明:
https://www.bt.cn/bbs/thread-82931-1-1.html
因此Centos 8已经无法正常安装宝塔面板、请更换至Centos 7或Centos 8 Stream系统安装宝塔
*Centos 7 官方支持至2024年7月30日
*Centos 8 Stream 官方支持至2024年5月31日 |