Docker Volume Mounts Tuning for Mac
Contents
Docker Volume Mount Performance Issue on Mac
Issue
There’s a performance issue on Mac.
In my case, the
You’d better use
In my case, the
docker.hyperkit
process is using high cpu resources.You’d better use
cached
configuration in conclusion.Tuning Configuration
Configuration | Description |
---|---|
delegated | The container’s view of file system writes performed by containers my not be immediately reflect on the host file system. |
cached | The cached configuration provides all the guarantees of the delegated configuration, and some additional guarantees around the visibility of writes performed by containers. |
consistent | This is default. The container and host are always synchronizing. |
Examples
Volume Mount with Default Configuration as consistent
|
|
Volume Mount with delegated
|
|
Volume Mount with cached
|
|