查看问题详情

编号项目分类查看权限最后更新
0000485Anolis OS 7Generalpublic2021-11-12 14:28
报告员anolislw 分派给geliwei-ali  
优先级high严重性major出现频率always
状态 resolved处理状况fixed 
平台x86_64操作系统Anolis OS操作系统版本7
标题0000485: [Anolis7.7][vhd][x86_64] 安装docker-ce缺失依赖
描述[问题描述]
配置docker-ce源后,安装docker-ce失败,缺失依赖

[镜像详情]
镜像:anolisos_7_7_x64_20G_anck_alibase_20211105.vhd
实例:ecs.g6.large,ecs.g6.26xlarge,ecs.g6a.large,ecs.g6a.32xlarge

[机器详情]
[root@iZbp14n9npwyo2b1huz94cZ ~]# uname -a
Linux iZbp14n9npwyo2b1huz94cZ 4.19.91-24.8.an7.x86_64 #1 SMP Sat Sep 18 16:53:17 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@iZbp14n9npwyo2b1huz94cZ ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@iZbp14n9npwyo2b1huz94cZ ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.7G 0 3.7G 0% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 3.8G 592K 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/vda1 40G 9.9G 28G 27% /
tmpfs 760M 0 760M 0% /run/user/0
[root@iZbp14n9npwyo2b1huz94cZ ~]#
[root@iZbp14n9npwyo2b1huz94cZ ~]# free -h
              total used free shared buff/cache available
Mem: 7.4G 145M 7.0G 600K 246M 7.0G
Swap: 0B 0B 0B
[root@iZbp14n9npwyo2b1huz94cZ ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.19.91-24.8.an7.x86_64 root=UUID=678fa482-e865-43e6-a841-68840e679524 ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api spectre_v2=retpoline biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295
[root@iZbp14n9npwyo2b1huz94cZ ~]#
[root@iZbp14n9npwyo2b1huz94cZ ~]# yum repolist
Loaded plugins: langpacks
repo id repo name status
!docker-ce docker-ce 131
!os/x86_64 AnolisOS-7.7 - os 6,744
!plus-debug plus-debug 6
!updates/x86_64 AnolisOS-7.7 - updates 0
repolist: 6,881

[报错详情]
[root@iZbp14n9npwyo2b1huz94cZ ~]# yum install -y docker-ce
Loaded plugins: langpacks
docker-ce | 3.5 kB 00:00:00
os | 3.8 kB 00:00:00
plus-debug | 3.0 kB 00:00:00
updates | 3.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.10-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.10-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.10-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-20.10.10-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.10-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.4.11-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.4.11-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.10-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.10-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:20.10.10-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.10-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.10-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.4.11-3.1.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.4.11-3.1.el7.x86_64
---> Package docker-ce.x86_64 3:20.10.10-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.10-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.10-3.el7 will be installed
--> Processing Dependency: fuse-overlayfs >= 0.7 for package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64
--> Processing Dependency: slirp4netns >= 0.4 for package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64
---> Package docker-scan-plugin.x86_64 0:0.9.0-3.el7 will be installed
--> Finished Dependency Resolution
Error: Package: containerd.io-1.4.11-3.1.el7.x86_64 (docker-ce)
           Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64 (docker-ce)
           Requires: fuse-overlayfs >= 0.7
Error: Package: 3:docker-ce-20.10.10-3.el7.x86_64 (docker-ce)
           Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-20.10.10-3.el7.x86_64 (docker-ce)
           Requires: slirp4netns >= 0.4
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
问题重现步骤[复现步骤]
1)配置docker-ce源
[root@iZbp14n9npwyo2b1huz94cZ ~]# cat /etc/yum.repos.d/docker-ce.repo
[docker-ce]
name = docker-ce
baseurl = https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
enabled = 1
gpgcheck=0

2)安装docker-ce
标签没加标签.

活动

anolislw

2021-11-08 11:55

报告者   ~0000619

镜像:anolisos_7_7_x64_20G_anck_alibase_20211105.vhd
实例:ecs.g7.large,ecs.g7.32xlarge
存在同样问题

yinyongchen

2021-11-08 17:39

报告者   ~0000629

镜像:anolisos_7_7_x64_20G_rhck_alibase_20211105.vhd
实例:ecs.g6r.large ecs.g6r.16xlarge
存在同样问题

yinyongchen

2021-11-08 17:55

报告者   ~0000630

@yinyongchen:镜像:anolisos_7_7_x64_20G_rhck_alibase_20211105.vhd
实例:ecs.g6r.large ecs.g6r.16xlarge
存在同样问题
---------------------------------------------------------------------------------------------------------------------
镜像:anolisos_7_7_arm64_20G_anck_alibase_20211105.vhd
实例:ecs.g6r.large ecs.g6r.16xlarge
存在同样问题, 上面镜像名写错了,是aarch64架构的

shanxifanshi

2021-11-09 10:35

报告者   ~0000633

以下规格实例在安装7.7 x86和arm rhck镜像后,并手动添加epel源后依然缺少依赖
[x86]
镜像:anolisos_7_7_x64_20G_rhck_alibase_20211105.vhd
实例:ecs.ebmg6.26xlarge、ecs.ebmgn7i.32xlarge

[arm]
镜像:anolisos_7_7_arm64_20G_rhck_alibase_20211105.vhd
实例:ecs.g6r.large、ecs.g6r.16xlarge

手动配置的epel源:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.aliyun.com/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

且epel源是可以ping通的,说明访问没有问题
# ping mirrors.aliyun.com
PING mirrors.aliyun.com.w.alikunlun.com (42.81.204.61) 56(84) bytes of data.
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=1 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=2 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=3 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=4 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=5 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=6 ttl=51 time=11.6 ms
64 bytes from 42.81.204.61 (42.81.204.61): icmp_seq=7 ttl=51 time=11.6 ms

wb-wpp899309

2021-11-09 14:54

报告者   ~0000639

镜像:anolisos_7_7_x64_20G_anck_alibase_20211105.vhd
实例:ecs.g7a.large、ecs.g7a.32xlarge、ecs.d1.2xlarge、ecs.d2s.5xlarge
存在相同的问题

anolislw

2021-11-10 12:24

报告者   ~0000652

补充下安装docker-ce失败时,当时测试机repo的情况:
------------------------------------------------------------------------------
[root@iZ2zeh3bjq6rgmgzrldco7Z ~]# yum repolist
Loaded plugins: langpacks
repo id repo name status
!docker docker-ce 131
!os/x86_64 AnolisOS-7.7 - os 6,744
!plus-debug plus-debug 6
!updates/x86_64 AnolisOS-7.7 - updates 0
repolist: 6,881
[root@iZ2zeh3bjq6rgmgzrldco7Z ~]# cd /etc/yum.repos.d/
[root@iZ2zeh3bjq6rgmgzrldco7Z yum.repos.d]# cat *.repo
[os]
name=AnolisOS-7.7 - os
baseurl=http://mirrors.cloud.aliyuncs.com/anolis/7.7/os/$basearch/os
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS
gpgcheck=1
[Plus]
name=AnolisOS-7.7 - Plus
baseurl=http://mirrors.cloud.aliyuncs.com/anolis/7.7/Plus/$basearch/os
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS
gpgcheck=1
[updates]
name=AnolisOS-7.7 - updates
baseurl=http://mirrors.cloud.aliyuncs.com/anolis/7.7/updates/$basearch/os
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ANOLIS
gpgcheck=1
[plus-debug]
name=plus-debug
baseurl=http://mirrors.openanolis.cn/anolis/7.7/Plus/x86_64/debug/
enabled=1


[docker-ce]
name = docker-ce
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
enabled=1
gpgcheck=0

geliwei-ali

2021-11-12 14:28

经理   ~0000685

更新anolis-release之后就可以安装了

geliwei-ali

2021-11-12 14:28

经理   ~0000686

image.png (720,693 字节)

问题历史

日期 用户名 字段 更改
2021-11-08 11:46 anolislw 新建问题
2021-11-08 11:55 anolislw 注释已添加: 0000619
2021-11-08 17:39 yinyongchen 注释已添加: 0000629
2021-11-08 17:55 yinyongchen 注释已添加: 0000630
2021-11-09 10:35 shanxifanshi 注释已添加: 0000633
2021-11-09 14:54 wb-wpp899309 注释已添加: 0000639
2021-11-10 12:24 anolislw 注释已添加: 0000652
2021-11-12 09:45 qingming2021 优先级 中 => 高
2021-11-12 09:45 qingming2021 严重性 一般 => 严重
2021-11-12 14:28 geliwei-ali 分派给 => geliwei-ali
2021-11-12 14:28 geliwei-ali 状态 新建 => 已解决
2021-11-12 14:28 geliwei-ali 处理状况 未处理 => 已修正
2021-11-12 14:28 geliwei-ali 注释已添加: 0000685
2021-11-12 14:28 geliwei-ali 注释已添加: 0000686
2021-11-12 14:28 geliwei-ali 添加了以下文件:: image.png