84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
第一次使用mac,使用docker搭建开发环境,挂载设置共享的时候都能正常显示,但是却发现在共享文件夹无法使用chmod来更改文件夹的权限,导致必须root才能读写,请问如何解决。
之前使用windows电脑的时候使用docker来搭建开发环境的,当时又一个现象,就是windows下的文件挂载到docker之后权限是777的,所以一切都很正常,不够这次在mac上就只有755.
使用umask设置成了000都不行
文件夹不能改权限,但是文件没有问题
业精于勤,荒于嬉;行成于思,毁于随。
If you are using Docker Toolbox, I recommend you download the new Docker for Mac https://docs.docker.com/docker-for-mac/ which uses a different mechanism for file sharing (OSXfs), maybe will solve your problem.
If you are using Docker Toolbox, I recommend you download the new Docker for Mac https://docs.docker.com/docker-for-mac/ which uses a different mechanism for file sharing (OSXfs), maybe will solve your problem.