To setup your mac you have to perform the following steps:
Make sure the address 192.168.23.1 is exposed on your loopback device:
If you do not want to do this manually all the time, then I have a deamon for you:
https://github.com/foomo/ifconfigdockerhost
sudo ifconfig lo0 alias 192.168.23.1
# if you want remove it
# sudo ifconfig lo0 -alias 192.168.23.1
Add a host for it:
# /etc/hosts
192.168.23.1 dockerhost
Change your nfsd conf
# /etc/nfs.conf
nfs.server.mount.require_resv_port = 0
Export your www dir:
# /etc/exports
/Users/<yourname>/www -mapall=<yourname> -alldirs dockerhost
Restart nfsd:
sudo nfsd restart
See if things are exported:
showmount -e dockerhost
Docker not responding
Running
make local
with the default Docker settings will make your instance unresponsive. You will not be able to execute anydocker
commands in the CLI.So, before you do anything, increase the memory and CPU resources by clicking the Docker icon on the top right
Preferences > Advanced
. Increase the core count to 6 and the memory to at least 8 GB.NFS permission issues
The export (at least on Mojave) has to explicitly point to the project directory.
Otherwise, the containers using the NFS share will fail to start due to a permission error.
An example is the
apache2
containerAfter you fix the file, restart the NFS server and the container.
The easiest way to reproduce this behavior, is to configure the export, and try to mount it regularly:
tldr; The point is to export the path which is being mounted.
File permission issues
If you're having issues when copying/editing files with
sudo
in the terminal, like:Go to
Security & Privacy > Privacy > [Full Disk Access]
, click on the+
sign and add your terminal (eg. iTerm).Local dockerhost address
globus-local-test.bestbytes.net
should be added to the hosts configuration, anddockerhost
is an alias to it.