if, like me - you’re tired of waiting for responses from your containers running docker for mac, try swapping to docker-machine with nfs mounts!
deps
| |
chose 1 of these:
A: running vmware fusion (even faster than virtualbox)
| |
B: default with virtualbox
| |
enabling NFS mounts (will write to /etc/exports) - can conflict with vagrant/other NFS mounts
| |
wait for confirmation (restart)
now, let’s do some magic:
add this to your bash-profile:
| |
reload your shell
| |
add overrides to the existing compose file (emulating docker for mac’s host.docker.internal behavior and allowing applications to see themselves from curl, etc )
touch docker-compose.override.yml
add the following
| |
then finally
| |
and enjoy high-speed mounts and networking
caveat: you’ll either need to set a static host entry for project.docker.localhost on your host machine (macos) or do it with dnsmasq (a howto/automation gude in progress)