From d6cc8a1d2c5c0fac5c8c7967c71d11af0b050a5a Mon Sep 17 00:00:00 2001 From: Stephen Turner Date: Fri, 18 Dec 2020 10:51:15 +0000 Subject: [PATCH 1/2] Add more filesharing tips --- docker-for-mac/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-for-mac/index.md b/docker-for-mac/index.md index 35df224010..9d2a8ce01e 100644 --- a/docker-for-mac/index.md +++ b/docker-for-mac/index.md @@ -93,12 +93,21 @@ File share settings are: bind mount (`-v`) feature. > Tips on shared folders, permissions, and volume mounts +> + * Share only the directories that you need with the container. File sharing + introduces overhead as any changes to the files on the host need to be notified + to the Linux VM. Sharing too many files can lead to high CPU load and slow + filesystem performance. > * Shared folders are designed to allow application code to be edited on the host while being executed in containers. For non-code items such as cache directories or databases, the performance will be much better if they are stored in the Linux VM, using a [data volume](../storage/volumes.md) (named volume) or [data container](../storage/volumes.md). +> + * If you share the whole of your home directory into a container, MacOS may + prompt you to give Docker access to personal areas of your home directory such as + your Reminders or Downloads. > * By default, Mac file systems are case-insensitive while Linux is case-sensitive. On Linux, it is possible to create 2 separate files: `test` and `Test`, From da56259e895dc47f22c5e438a95fa61cbebc24f8 Mon Sep 17 00:00:00 2001 From: Stephen Turner Date: Fri, 18 Dec 2020 10:55:06 +0000 Subject: [PATCH 2/2] Add new filesharing tip on Windows too --- docker-for-windows/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-for-windows/index.md b/docker-for-windows/index.md index 83d502350d..52e187e217 100644 --- a/docker-for-windows/index.md +++ b/docker-for-windows/index.md @@ -105,6 +105,11 @@ File share settings are: bind mount (`-v`) feature. > Tips on shared folders, permissions, and volume mounts +> + * Share only the directories that you need with the container. File sharing + introduces overhead as any changes to the files on the host need to be notified + to the Linux VM. Sharing too many files can lead to high CPU load and slow + filesystem performance. > * Shared folders are designed to allow application code to be edited on the host while being executed in containers. For non-code items such as cache directories or databases, the performance will be much better if they are stored in