Created attachment 810 [details] 容器基础命令报错 Description of problem: anolisos:23-micro和anolisos:23-minimal容器镜像在使用的时候存在报错: bash-5.2# bzcmp /usr/bin/bzcmp: line 16: sed: command not found Usage: [diff_options] file [file] bash-5.2# bzdiff /usr/bin/bzdiff: line 16: sed: command not found Usage: [diff_options] file [file] bash-5.2# bzegrep /usr/bin/bzegrep: line 11: sed: command not found grep through bzip2 files usage: [grep_options] pattern [files] bash-5.2# bzfgrep /usr/bin/bzfgrep: line 11: sed: command not found grep through bzip2 files usage: [grep_options] pattern [files] bash-5.2# bzgrep /usr/bin/bzgrep: line 11: sed: command not found grep through bzip2 files usage: [grep_options] pattern [files] bash-5.2# bzless /usr/bin/bzless: line 8: sed: command not found usage: files... bash-5.2# bzmore /usr/bin/bzmore: line 8: sed: command not found usage: files... bash-5.2# htdbm htdbm: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory bash-5.2# htdigest htdigest: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory bash-5.2# htpasswd htpasswd: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory bash-5.2# httxt2dbm httxt2dbm: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory bash-5.2# logresolve logresolve: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory Steps to Reproduce: 1.docker pull cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-micro && docker pull cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal 2.docker run -itd cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-micro bash && docker run -itd cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal bash 3. docker exec -it NAMES bash Actual results: 执行基础命令存在command not fonud或error报错 Expected results: 执行基础命令没有报错 Additional info:
需要确认这些基础命令是否无须支持
x86anolisos:23-micro和anolisos:23-minimal容器镜像存在相同情况 另x86 anolisos:23-siliconfast和anolisos:23-busybox容器镜像存在部分基础命令报错,帮忙确认是否属于问题: anolisos:23-siliconfast: / # dumpleases dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory / # eject eject: can't open '/dev/cdrom': No such file or directory / # last last: can't open '/var/log/wtmp': No such file or directory / # arch x86_64 anolisos:23-busybox: / # conspy conspy: can't open '/dev/vcsa': No such file or directory / # dumpleases dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory / # dumpleases dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory / # eject eject: can't open '/dev/cdrom': No such file or directory / # last last: can't open '/var/log/wtmp': No such file or directory / # arch x86_64
x86的SiliconFast容器的dumpleases,eject,last存在相同的情况
容器镜像的支持 scope 不清晰,我们需要在 rnotes 或者其他文档中提供 bydesign 的点。
Created attachment 854 [details] suse容器镜像mini,micro
使用suse的容器镜像registry.suse.com/bci/bci-minimal:latest,registry.suse.com/bci/bci-micro:latest,registry.suse.com/bci/bci-busybox:latest suse的mini,micro精简镜像里没有bz*和ht*以及logresolve相关的命令 suse的busybox精简镜像里没有dumpleases,conspy,eject命令,在suse的busybox里直接执行last和在anolis23的busybox里直接执行last结果情况相同,详情见附件
Created attachment 855 [details] suse的busybox运行
suse这种不可用的命令是不在/usr/bin里的,anolis是否也需要去掉这些不可用的命令
(In reply to liuyaqing from comment #6) > 使用suse的容器镜像registry.suse.com/bci/bci-minimal:latest,registry.suse.com/bci/ > bci-micro:latest,registry.suse.com/bci/bci-busybox:latest > suse的mini,micro精简镜像里没有bz*和ht*以及logresolve相关的命令 > suse的busybox精简镜像里没有dumpleases,conspy,eject命令, > 在suse的busybox里直接执行last和在anolis23的busybox里直接执行last结果情况相同,详情见附件 我们和 suse 是两套环境,按照我们自己的需求点来测试就可以了~ mini 和 micro 主要区分在提供 microdnf 和 dnf 的差异上,既然需要进行解析远端 yum 源,就需要对应的 resolve 文件。 busybox 中现在所有的二进制均由 busybox 软件提供。
执行dumpleases,conspy,eject,last等存在No such file or directory的情况,影响命令功能的使用,建议把这个问题再看一下
使用 registry.openanolis.cn/openanolis/anolisos:23-busybox,registry.openanolis.cn/openanolis/anolisos:23-micro,registry.openanolis.cn/openanolis/anolisos:23-minimal精简镜像,没有再看到bug里报错误的命令,结果符合预期,bug状态从BYDESIGN置为FIXED