参考:https://stackoverflow.com/questions/69786640/no-access-rights-in-docker-container-when-using-sles15-and-suse-container
貌似是因为内核的某个特性
If docker image and host machine are based on same OS, then it should not have permission issue with ls -l or ls -n
另一个回答
This seems to be linked to an update in Linux kernel version in opensuse:leap, debian:bullseye, etc: all further version of these OS are also concerned.
github.com user tianon recommend updating "Docker, runc, and likely libseccomp on your host." source: https://github.com/docker-library/openjdk/issues/465
Upgrading of libseccomp to version 2.5.2 solved the same problem on my side.
source: https://github.com/seccomp/libseccomp/blob/main/CHANGELOG