【发布时间】:2021-10-31 11:57:19
【问题描述】:
我在 SLES15 (GNU/Linux 4.12.14) 上运行 Docker 18.09.6。启动任何 suse 容器跳跃/风滚草或 sle15 时,我没有适当的访问权限来查看 ls -l。其他容器镜像如 Alpine 和 Ubuntu 可以正常工作。
在这两种情况下,我都是id -u = 0,根据whoami 是root。
示例:
275b1cf2bd20:/ # ls -l
ls: cannot access 'sbin': Operation not permitted
ls: cannot access 'sys': Operation not permitted
ls: cannot access 'usr': Operation not permitted
ls: cannot access 'proc': Operation not permitted
ls: cannot access 'bin': Operation not permitted
ls: cannot access 'tmp': Operation not permitted
ls: cannot access 'selinux': Operation not permitted
ls: cannot access 'boot': Operation not permitted
ls: cannot access 'home': Operation not permitted
ls: cannot access 'root': Operation not permitted
ls: cannot access 'dev': Operation not permitted
ls: cannot access 'var': Operation not permitted
ls: cannot access 'run': Operation not permitted
ls: cannot access 'lib64': Operation not permitted
ls: cannot access 'opt': Operation not permitted
ls: cannot access 'srv': Operation not permitted
ls: cannot access 'mnt': Operation not permitted
ls: cannot access 'lib': Operation not permitted
ls: cannot access 'etc': Operation not permitted
total 0
d????????? ? ? ? ? ? bin
d????????? ? ? ? ? ? boot
d????????? ? ? ? ? ? dev
d????????? ? ? ? ? ? etc
d????????? ? ? ? ? ? home
d????????? ? ? ? ? ? lib
d????????? ? ? ? ? ? lib64
d????????? ? ? ? ? ? mnt
d????????? ? ? ? ? ? opt
d????????? ? ? ? ? ? proc
d????????? ? ? ? ? ? root
d????????? ? ? ? ? ? run
d????????? ? ? ? ? ? sbin
d????????? ? ? ? ? ? selinux
d????????? ? ? ? ? ? srv
d????????? ? ? ? ? ? sys
d????????? ? ? ? ? ? tmp
d????????? ? ? ? ? ? usr
d????????? ? ? ? ? ? var
这里发生了什么?
【问题讨论】: