Docker for Mac and Windows are fully native to the host platform and install everything into locations you would expect (e.g., the Applications folder on a Mac), using symlinks to make certain tools accessible on the command line. Cracking open the Docker Mac application.
This is a list of alternatives grouped by technology. Feel free to add the missing ones.
Docker native¶
Transparent, consistent, dual-sided (host -> container, container -> host) synchronization. Performance is here a trade-off for consistency. Can be 2-100 times slower than nfs and even more as compared with rsync.
OSXFS + unison¶
Dedicated container mounts a local directory via osxfs and runs Unison to synchronize this mount with a Docker volume.- docker-magic-sync- docker-sync implements osxfs+unison-based sync when ‘native_osx’ is used as a strategy, being the default since 0.4.x. We use a special technique to achieve better performance, we sync with osxfs but the container still runs at native speed, let’s call it decoupled sync.
Unison¶
Unison runs both on the host and in a Docker container and synchronizes the macOS directory with a Docker container with Unison. osxfs + unison is a preferred alternative, because it’s simpler and more reliable (bad FSEvents performance).
Tip
You can choose to use Unison with docker-sync by adding sync_strategy: ‘unison’ to a sync-point too
Rsync¶
Performance: Exactly the performance you would have without shares. Downside: one-way sync.
NFS¶
Performance: In general, at least 3 times slower than rsync, often even more.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |