Add more filesharing tips

This commit is contained in:
Stephen Turner 2020-12-18 10:51:15 +00:00 committed by GitHub
parent 9295dcb94a
commit d6cc8a1d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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`,