Sean Handley
1 min readAug 8, 2018

--

Hi Rob,

It sounds like part of the docker build/compose routine is to set the html directory to some web server user.

The drawback of this approach is that the directory in the container that you’re mapping to the host directory *must* have the same UID/GID as the host user on OSX.

NFS does support an option where you can allow them to differ on the host/target but the version that ships with OSX doesn’t support it for security reasons.

You could workaround it by setting up your docker image to configure the web server user with a UID and GID that matches your OSX user’s UID/GID or you could configure the web server to run as root inside the container (then there’s no need for it to try and chown the directory).

Hope that helps!

--

--

Sean Handley
Sean Handley

Written by Sean Handley

Engineer, leader, open-source fan.

Responses (2)