【发布时间】:2019-02-13 04:05:57
【问题描述】:
在 RHEL、CentOS、Fedora 和其他支持 SELinux 的发行版上,创建带有挂载并打开 SELinux 的 docker 映像会返回权限被拒绝:
docker run --rm -it -v $(pwd):/home centos7
[root@4b348767653c ~]# ls /home
ls: cannot open directory /home: Permission denied
如何在不关闭 SELinux 的情况下继续使用装载了卷的 Docker 映像?
【问题讨论】:
标签: docker centos rhel selinux