mirror of https://github.com/docker/docs.git
corrected explanation of default permissions on shared volumes (#3384)
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
parent
42163935cf
commit
536680a87c
|
@ -129,9 +129,9 @@ No, at this point, Docker for Windows does not enable you to control (`chmod`)
|
|||
the Unix-style permissions on [shared
|
||||
volumes](/docker-for-windows/index.md#shared-drives) for deployed containers,
|
||||
but rather sets permissions to a default value of
|
||||
[0770](http://permissions-calculator.org/decode/0770/) (`read`, `write`,
|
||||
`execute` permissions for `user` and `group`, none for other) which is not
|
||||
configurable.
|
||||
[0755](http://permissions-calculator.org/decode/0755/)
|
||||
(`read`, `write`, `execute` permissions for `user`, `read` and `execute`
|
||||
for `group`) which is not configurable.
|
||||
|
||||
For workarounds and to learn more, please see [Permissions errors on data
|
||||
directories for shared
|
||||
|
|
|
@ -374,12 +374,13 @@ access the mounted volumes.
|
|||
> shared drives are needed. (See also
|
||||
> [Volume mounting requires shared drives for Linux containers](troubleshoot.md#volume-mounting-requires-shared-drives-for-linux-containers).)
|
||||
>
|
||||
> * You cannot control (`chmod`) permissions on shared volumes for deployed containers. Docker for Windows sets permissions to a default value of
|
||||
[0770](http://permissions-calculator.org/decode/0770/) (read, write, execute permissions for
|
||||
`user` and `group`, none for other). This is not configurable. See the
|
||||
troubleshooting topic [Permissions errors on data directories for shared
|
||||
volumes](troubleshoot.md#permissions-errors-on-data-directories-for-shared-volumes)
|
||||
for workarounds and more detail.
|
||||
> * You cannot control (`chmod`) permissions on shared volumes for
|
||||
deployed containers. Docker for Windows sets permissions to a default value of
|
||||
[0755](http://permissions-calculator.org/decode/0755/) (`read`, `write`,
|
||||
`execute` permissions for `user`, `read` and `execute` for `group`). This is not
|
||||
configurable. See the troubleshooting topic [Permissions errors on data
|
||||
directories for shared
|
||||
volumes](troubleshoot.md#permissions-errors-on-data-directories-for-shared-volumes) for workarounds and more detail.
|
||||
>
|
||||
> * You can share local drives with your _containers_ but not with
|
||||
> Docker Machine nodes. See
|
||||
|
|
|
@ -48,14 +48,15 @@ can use in email or the forum to reference the upload.
|
|||
|
||||
### Permissions errors on data directories for shared volumes
|
||||
|
||||
Docker for Windows sets permissions on [shared volumes](/docker-for-windows/index.md#shared-drives) to a default value of
|
||||
[0770](http://permissions-calculator.org/decode/0770/) (`read`, `write`,
|
||||
`execute` permissions for `user` and `group`, none for other). If you are
|
||||
Docker for Windows sets permissions on [shared
|
||||
volumes](/docker-for-windows/index.md#shared-drives) to a default value of
|
||||
[0755](http://permissions-calculator.org/decode/0755/) (`read`, `write`,
|
||||
`execute` permissions for `user`, `read` and `execute` for `group`). If you are
|
||||
working with applications that require permissions different than this default,
|
||||
you will likely get errors similar to the following.
|
||||
|
||||
```
|
||||
Data directory (/var/www/html/data) is readable by other users. Please change the permissions to 0770 so that the directory cannot be listed by other users.
|
||||
Data directory (/var/www/html/data) is readable by other users. Please change the permissions to 0755 so that the directory cannot be listed by other users.
|
||||
```
|
||||
|
||||
The default permissions on shared volumes are not configurable. If you are
|
||||
|
|
Loading…
Reference in New Issue