updated virtioFS

This commit is contained in:
Jerae Duffin 2022-03-15 21:38:10 -05:00
parent b5e2c6f603
commit cb5f0d2aa9
1 changed files with 7 additions and 9 deletions

View File

@ -174,19 +174,17 @@ Select **Use the new Virtualization framework** to allow Docker Desktop to use t
#### Enable VirtioFS
Select the **Enable VirtioFS accelerated directory** sharing option to enable VirtioFS. You must install Docker Desktop 4.6 or higher and macOS 12.2 to use VirtioFS.
The 4.6 release of Docker Desktop for Mac lets developers use a new experimental file-sharing implementation called [virtioFS](https://virtio-fs.gitlab.io/){: target='_blank' rel='noopener' class='_'}; the current default is gRPC-FUSE. During testing, virtioFS has reduced the time taken to sync changes between the host and VM up to 90%. For more details, see our < need link for 4.6 blog post>.
VirtioFS is a file system that shares information quicker by utilizing a virtual machine and host kernel located on the same machine. For example, the VirtioFS daemon `virtualization.framework` runs as a separate process on macOS and allows the Linux VM to directly access files on the macOS host. VirtioFS can also take a file and map it into the Linux VMs memory space, removing the need to copy the entire contents into the VMs memory and making the file contents quickly accessible from the host.
To enable virtioFS:
VirtioFS helps developers share the source code volumes located on their host with the container. Meaning that changes made on the host automatically propagate to the container without rebuilding the image.
When developers make changes to a file and save it on their host machine, the changes do not sync automatically with those in the container. Due to this, developers use the `docker run -v` command to share the source code volumes located on their host with the container. This causes slower performance for users and also decreases productivity.
1. Verify that you are on the following macOS version:
- macOS 12.2 or later (for Apple Silicon)
- macOS 12.3 or later (for Intel)
When using VirtioFS, changes made to the developers' files located on their host system will quickly sync to the container file system. They can then view their changes instantly in a browser or a page reload.
2. Select **Enable VirtioFS accelerated directory sharing** to enable virtioFS.
> **Note**
>
> Currently, Apples VirtioFS implementation on macOS Monterey does not
> include this mapping functionality.
3. Click **Apply & Restart**.
### Kubernetes