{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10725","labels_url":"https://api.github.com/repos/docker/docker/issues/10725/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10725/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10725/events","html_url":"https://github.com/docker/docker/issues/10725","id":57415133,"number":10725,"title":"docker use nfs volume  in container with selinux  Permission denied","user":{"login":"mk-qi","id":642228,"avatar_url":"https://avatars.githubusercontent.com/u/642228?v=3","gravatar_id":"","url":"https://api.github.com/users/mk-qi","html_url":"https://github.com/mk-qi","followers_url":"https://api.github.com/users/mk-qi/followers","following_url":"https://api.github.com/users/mk-qi/following{/other_user}","gists_url":"https://api.github.com/users/mk-qi/gists{/gist_id}","starred_url":"https://api.github.com/users/mk-qi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mk-qi/subscriptions","organizations_url":"https://api.github.com/users/mk-qi/orgs","repos_url":"https://api.github.com/users/mk-qi/repos","events_url":"https://api.github.com/users/mk-qi/events{/privacy}","received_events_url":"https://api.github.com/users/mk-qi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T04:10:09Z","updated_at":"2015-02-13T04:05:29Z","closed_at":"2015-02-13T04:05:29Z","body":"[root@docker11100 ~]# docker info\r\nContainers: 3\r\nImages: 45\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:2-8594970272-pool\r\n Pool Blocksize: 65.54 kB\r\n Data file: /data/dockerstorage/devicemapper/devicemapper/data\r\n Metadata file: /data/dockerstorage/devicemapper/devicemapper/metadata\r\n Data Space Used: 1.616 GB\r\n Data Space Total: 107.4 GB\r\n Metadata Space Used: 3.4 MB\r\n Metadata Space Total: 2.147 GB\r\n Library Version: 1.02.84-RHEL7 (2014-03-26)\r\nExecution Driver: native-0.2\r\nKernel Version: 3.10.0-123.20.1.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\n\r\n\r\n[root@docker11100 ~]# cat /etc/fstab \r\n/dev/mapper/centos-root /                       xfs     defaults        1 1\r\nUUID=e766d04a-5c78-4a87-a346-3c13be452d7d /boot                   xfs     defaults        1 2\r\n/dev/mapper/centos-home /home                   xfs     defaults        1 2\r\n/dev/mapper/centos-home /data                  xfs     defaults        1 2\r\n/dev/mapper/centos-swap swap                    swap    defaults        0 0\r\n192.168.2.62:/vol/samba         /opt/samba   nfs    defaults\t\t 0 0\r\n\r\n\r\nrun  docker\r\n docker run --name=web08246 -h web08246 --add-host=web08246:127.0.0.1 -v /opt/samba/fanliweb:/opt/fanliweb   -itd   centos:centos  /bin/bash \r\n\r\n\r\n \r\nin container  with df \r\n192.168.2.62:/vol/samba/fanliweb on /opt/fanliweb type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.2.62,mountvers=3,mountport=4046,mountproto=udp,local_lock=none,addr=192.168.2.62)\r\n192.168.2.62:/vol/samba/tuangouweb on /opt/webdata type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.2.62,mountvers=3,mountport=4046,mountproto=udp,local_lock=none,addr=192.168.2.62)\r\n\r\n\r\nwebdata]# ls\r\nls: cannot open directory .: Permission denied\r\n\r\n\r\n"}}