docker container 里面执行 ls -l 报错

创建日期: 2023-06-08 16:16 | 作者: 风波 | 浏览次数: 15 | 分类: OS

参考: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

15 浏览
17 爬虫
0 评论