docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Running drush commands

Open nxut opened this issue 7 years ago • 3 comments

Codebase New mounted codebase

Describe your issue I would like to know how to execute drush commands after running docker-compose up -d. I want to run drush si for site installation. I tried docker-compose exec php bash to access /var/www/html/, lunched drush si but can't reach mariadb instance. Any suggestions please? Thank you.

nxut avatar Feb 10 '19 10:02 nxut

My bad, was specifying bad port.

nxut avatar Feb 10 '19 10:02 nxut

Hi @nxut, I'm new to the world of docker deployment and I'd like to know how you managed to run your drush commands from the docker4drupal project?

EnzoJURET avatar Feb 10 '20 10:02 EnzoJURET

In my experience, drush needed to be added as an additional composer dependency composer require drush/drush

mrspiderbrain avatar Aug 29 '23 05:08 mrspiderbrain