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
Be aware this works only, if no overlapping exports are created. If you have, say
/Users/<yourname>
already exported, it will silently fail and use just the first export…