首页 > 其他 > 详细

docker ls: cannot open directory .: Permission denied

时间:2015-05-29 23:03:16      阅读:1518      评论:0      收藏:0      [点我收藏+]

From access.redhat.com:Sharing_Data_Across_Containers:

" Host volume settings are not portable, since they are host-dependent and might not work on any other machine. For this reason, there is no Dockerfile equivalent for mounting host directories to the container. Also, be aware that the host system has no knowledge of container SELinux policy. Therefore, if SELinux policy is enforced, the mounted host directory is not writable to the container, regardless of the rw setting. Currently, you can work around this by assigning the proper SELinux policy type to the host directory":

~]# chcon -Rt svirt_sandbox_file_t host_dir.

Where host_dir is a path to the directory on host system that is mounted to the container.

It‘s seems to be only a workaround but i tried and it works

docker ls: cannot open directory .: Permission denied

原文:http://www.cnblogs.com/gibbon/p/4539511.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!