wodby / drupal-php

PHP docker container image for Drupal
https://wodby.com/stacks/drupal
MIT License
60 stars 81 forks source link

Cannot run drush dl within container anymore (7.1) #45

Closed pianomansam closed 6 years ago

pianomansam commented 6 years ago

It appears that by changing the user to www-data, I can no longer do a drush dl to get a new module.

https://github.com/wodby/drupal-php/blob/496e9ac4568d1884b31e33fa50345ada29c30299/7.1/Dockerfile#L30

I realize using the root user in the container isn't the best idea, but using www-data means I cannot modify anything outside what PHP-FPM can modify.

pianomansam commented 6 years ago

Please note this is with Drupal 7.

csandanov commented 6 years ago

Why can't you download? Do you run drush inside of the php container? What are permissions/ownership of your /var/www/html? It should be owned by www-data.

You should not use latest images without stability tags, also you can always switch back to 2.x.x, 3.x.x has www-data as default user.