eko / docker-symfony

Run a Symfony application using Docker & docker-compose
BSD Zero Clause License
1.29k stars 475 forks source link

Unable to write logs and cache #120

Closed shubaivan closed 4 years ago

shubaivan commented 4 years ago

after docker-compose up in Symfony4

Unable to write in the logs directory (/var/www/symfony/var/log)

what I added to php-fpm/Dockerfile

# Permission fix
RUN apk --no-cache add shadow && usermod -u 1000 www-data

have error

usermod: user 'www-data' does not exist

when I try to enter in nginx container

docker exec -it nginx bash
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown

after cachel clear problem solved, but I still have problem with enter in some service

shubaivan commented 4 years ago

problem resolved when I run docker-compose exec php php /var/www/symfony/bin/console cache:clear