Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 624 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 624 Bytes

docker-volumes-permissions

Sample repo to play with Docker volumes

Running docker-compose up will run 2 containers: php is for php-fpm and web is for nginx

index.php will produce a Warning because all files in /src have wrong owner:group and php has no permissions to write to this folders as it runs as www-data:www-data

I've tried to fix this by adding RUN mkdir -p /src && chown -R www-data:www-data /src to php Dockerfile but that didn't helped.

  1. Why the owner and the group of /src is 1000:staff?
  2. How to fix this?