Skip to content

Commit

Permalink
Fix sessions permission error
Browse files Browse the repository at this point in the history
When using Docker toolbox, Symfony can't run because of permission errors. "Warning: SessionHandler::read(): Session data file is not created by your uid"
This line fixes the problem (based on boot2docker/boot2docker#587 (comment))
  • Loading branch information
Jacek Gendera committed Jun 4, 2017
1 parent 569dd6c commit 637f3e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php7-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ RUN echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-x
RUN echo 'alias sf="php app/console"' >> ~/.bashrc
RUN echo 'alias sf3="php bin/console"' >> ~/.bashrc

RUN usermod -u 1000 www-data

WORKDIR /var/www/symfony

0 comments on commit 637f3e5

Please sign in to comment.