Docker Community Forums

Share and learn in the Docker community.

OS X mount as different user than ID 1000, group staff

docker

(Zyxep) #1

Hi,

When i mount a host directory on OS X can i see within my container that it’s mounted as ID: 1000 group: staff
In my case this sux because I run a Nginx container and a PHP-FPM container and they don’t have access to write to my host directories.

I see 2 hacks to solve this:
1 create a system user with ID 1000 and group staff within my Dockerfile and run Nginx and PHP-FPM on that user.
or. chmod 777 my folders.

Both sux security.