alexcheng1982 / docker-magento2

Docker image for Magento Open Source 2
MIT License
381 stars 258 forks source link

Problem when docker-compose down #63

Open icychocolate98 opened 4 years ago

icychocolate98 commented 4 years ago

Good afternoon,

I noticed a problem if I delete containers or simply do docker-compose down ... When I run again docker-compose up -d it wake up containers correctly but then when I try to "install-magento" in web container, I have this error:

In Installer.php line 903: Missing write permissions to the following paths: /var/www/html/pub/media/tmp/catalog /var/www/html/pub/media/tmp /var/www/html/pub/media/attribute/swatch /var/www/html/pub/media/attribute

it changes from www-data to root the permissions , I don't know why

I can only fix it doing a new folder and starting process again ... It's important for me because I want to stop container and start again several times, or make several installations in different machines for example.

Any idea?