I am running a Docker containers on OSX. Containers consist of:
- Symfony
- Nginx
- php-fpm
- Redis
This is a pretty common setup to run Symfony apps.
I am running into some weird folder permission issues and I'm getting this error: error screenshot
My Symfony can create a folder
/var/www/var/chache
but then it can't write into it. Once cache folder created, folder permissions are set to this:
10344 drwxr-xr-x 1 1000 staff 68 Apr 15 00:33 cache
Owner of the folder is my local OSX user, which Docker is running under.
I've tried to change folder permissions or owner from Symfony's CLI in Docker and it has no effect.
I tried to chmod -R 777
under my local console, permissions are changed, but then Symfony creates folder inside cache folder and can't write into it again.
I've also tried to disable caching in app_dev.php:
$kernel = new AppKernel('dev', true);
// $kernel->loadClassCache();
$request = Request::createFromGlobals();
And in config.yml:
twig:
cache: false
Nothing had effect, so I'm lost here.
Any ideas how to solve an issue?