Created attachment 832 [details] 精简容器执行dnf install命令失败 Description of problem: 使用精简镜像minimal-arm-initrd.cpio.gz解压并构建完成后运行docker,执行dnf install bzip2 -y报错: Cannot find rpmkeys executable to verify signatures. Problem opening package bzip2-1.0.8-1.an23.aarch64.rpm The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. Error: GPG check FAILED Steps to Reproduce: 1.下载minimal-arm-initrd.cpio.gz并解压 2.创建dockerfile 3.构建docker docker build -t mini-image:an23 . 4.运行docker docker run -it --rm mini-image:an23 5. 执行命令 dnf install bzip2 -y Actual results: dnf安装bzip2失败 Expected results: 正常安装bzip2 Additional info: cat dockerfile FROM scratch COPY test / CMD ["bash"]
使用精简镜像 cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal-20230711,可以正常执行dnf install bzip2 -y,bug已解决
问题已解决