Bug 5654 - [Anolis23 GA][RC2][aarch64]使用容器cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-busybox,容器内执行rpm -qa报错:rpm: invalid option -- 'a'
Summary: [Anolis23 GA][RC2][aarch64]使用容器cloud-native-sig-registry.cn-hangzhou.cr.aliyu...
Status: RESOLVED BYDESIGN
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Modules (show other bugs) BaseOS Modules
Version: 23.0
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 10:54 UTC by liuyaqing
Modified: 2023-07-18 10:06 UTC (History)
0 users

See Also:


Attachments
arm容器镜像执行rpm报错 (8.05 MB, image/bmp)
2023-06-28 10:54 UTC, liuyaqing
Details
suse的busybox (8.05 MB, image/bmp)
2023-07-14 11:30 UTC, liuyaqing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuyaqing alibaba_cloud_group 2023-06-28 10:54:13 UTC
Created attachment 809 [details]
arm容器镜像执行rpm报错

Description of problem:
在arm机器上安装容器cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-busybox 容器内执行 rpm -qa,报错:rpm: invalid option -- 'a'

x86上的容器没有这个报错


Steps to Reproduce:
1.docker pull cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-busybox
2. docker run -itd cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-busybox bash
3. docker exec -it NAMES bash
4. 容器内执行 rpm -qa

Actual results:
容器内执行rpm -qa报错: 无效参数a

Expected results:
容器内正常执行rpm -qa

Additional info:
Comment 1 liuyaqing alibaba_cloud_group 2023-07-14 11:28:59 UTC
suse的busybox没有这个rpm参数 registry.suse.com/bci/bci-busybox:latest,详情见附件
Comment 2 liuyaqing alibaba_cloud_group 2023-07-14 11:30:00 UTC
Created attachment 856 [details]
suse的busybox
Comment 3 happy_orange alibaba_cloud_group 2023-07-18 10:06:37 UTC
我们提供的 busybox 镜像中的 rpm 命令行是由 busybox 提供,在设计文档中也有写 busybox 提供的 rpm 命令是只有 -qp 的 option 的,不包括 -a 参数。