Docker挂载主机目录Docker访问出现cannot open directory .: Permission denied的解决办法
程序员文章站
2022-03-03 09:04:35
...
当出现此种情况时只要在挂载目录后多加一个--privileged=true参数即可。
[[email protected] ~]# docker run -i -t -v /root/software/:/mnt/software/ --privileged=true feac5e0dfdb2 /bin/bash
[[email protected] /]# cd /mnt/software/
[[email protected] software]# ls
apache-tomcat-7.0.59.tar.gz jdk-7u79-linux-x64.tar.gz
[[email protected] software]#
参考文档:http://blog.csdn.net/rznice/article/details/52170085
推荐阅读
-
Docker容器内挂载目录无权限 ls cannot open directory Permission denied
-
Docker挂载主机目录ls: cannot open directory .: Permission denied
-
docker 挂载主机目录访问报错Permission denied 解决办法
-
docker 容器挂载主机目录,访问出现 cannot open directory /mnt/home/webroot/: Permission denied 的解决办法...
-
进入Docker容器后某些目录ls无法访问报错: cannot open directory ‘.‘: Permission denied
-
docker容器与主机之间设置挂载点并解决ls: cannot open directory '.': Permission denied
-
Docker挂载主机目录Docker访问出现Permission denied的解决办法
-
Docker挂载主机目录Docker访问出现Permission denied的解决办法
-
Docker挂载主机目录Docker访问出现Permission denied的解决办法
-
Docker挂载主机目录Docker访问出现cannot open directory .: Permission denied的解决办法