You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-for-windows/index.md
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,12 +232,7 @@ Choose the local directories you'd like to share with your Linux containers. Fil
232
232
not for Windows containers. For Linux containers, you need to share the drive
233
233
where the Dockerfile and volume are located. Otherwise, you get `file not found` or `cannot start service` errors at runtime. See [Volume mounting requires shared drives for Linux containers](troubleshoot.md#volume-mounting-requires-shared-drives-for-linux-containers).
234
234
235
-
File sharing permissions are tied to the credentials you provide here. If
236
-
you run `docker` commands under a different username than the one configured
237
-
here, your containers cannot access the mounted volumes.
238
-
239
-
When you select a local drive to share with your containers, Docker Desktop prompts you for your Windows system (domain)
240
-
username and password. Enter your credentials and then click **Apply & Restart**.
235
+
**Apply & Restart** makes the directory available to containers using Docker's bind mount (`-v`) feature.
241
236
242
237
> Tips on shared drives, permissions, and volume mounts
243
238
>
@@ -248,30 +243,11 @@ username and password. Enter your credentials and then click **Apply & Restart**
248
243
>
249
244
* Docker Desktop sets permissions to read/write/execute for users, groups and others [0777 or a+rwx](http://permissions-calculator.org/decode/0777/).
250
245
This is not configurable. See [Permissions errors on data directories for shared volumes](troubleshoot.md#permissions-errors-on-data-directories-for-shared-volumes).
251
-
>
252
-
* Ensure the domain user has access to shared drives, as described in [Verify domain user has permissions for shared drives](troubleshoot.md#verify-domain-user-has-permissions-for-shared-drives-volumes).
253
246
>
254
247
* You can share local drives with your _containers_ but not with Docker Machine
255
248
nodes. See the FAQ, [Can I share local drives and filesystem with my Docker Machine VMs?](faqs.md#can-i-share-local-drives-and-filesystem-with-my-docker-machine-vms).
256
249
>
257
250
258
-
#### Firewall rules for shared drives
259
-
260
-
Shared drives require port 445 to be open between the host machine and the
261
-
virtual machine that runs Linux containers. Docker detects if port 445 is closed
262
-
and shows the following message when you try to add a shared drive:
To share the drive, allow connections between the Windows host machine and the
267
-
virtual machine in Windows Firewall or your third party firewall software. You
268
-
do not need to open port 445 on any other network.
269
-
270
-
By default, allow connections to `10.0.75.1` on port 445 (the Windows host) from
271
-
`10.0.75.2` (the virtual machine). If your firewall rules seem correct, you may
272
-
need to toggle or
273
-
[reinstall the File and Print sharing service on the Hyper-V virtual network card](http://stackoverflow.com/questions/42203488/settings-to-windows-firewall-to-allow-docker-for-windows-to-share-drive/43904051#43904051)
274
-
275
251
#### Shared drives on demand
276
252
277
253
You can share a drive "on demand" the first time a particular mount is requested.
Copy file name to clipboardExpand all lines: docker-for-windows/troubleshoot.md
+1-117Lines changed: 1 addition & 117 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,15 +117,10 @@ volume defaults at container runtime, you need to either use non-host-mounted
117
117
volumes or find a way to make the applications work with the default file
118
118
permissions.
119
119
120
-
Docker Desktop currently implements host-mounted volumes based on [Microsoft SMB
121
-
protocol](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365233(v=vs.85).aspx), which does not support fine-grained, `chmod` control over these permissions.
122
-
123
120
See also, [Can I change permissions on shared volumes for container-specific
0 commit comments