Docker4drupal: Issue Running drush in drupal installed via composer

Created on 4 May 2017  路  6Comments  路  Source: wodby/docker4drupal

Hi,

I just started using this in one of my existing Drupal projects (installed via composer). when running,

docker-compose exec --user 82 php drush @dev status

I'm getting the following error:

Could not find the alias @dev

I tried running drush without the profile, but the work context is /var/www/html but my application is in /var/www/html/www

I checked for the file /etc/drush/site-aliases/default.aliases.drushrc.php via bash in container but it was not found.

Some help is much appreciated :)

Most helpful comment

Try to specify -r /var/www/html/web option

All 6 comments

btw, Im running drupal-php:5.6

Try to specify -r /var/www/html/web option

docker-compose exec php drush -r ./web status

@csandanov, @alesrebec
This worked, Thanks a lot.!

Hi,
I am having the same issue described above but the fix doesn't work for me.
Any clues?
Cheers,

Did you try with an absolute path -r /var/www/html/web? And what's the error that you're getting?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VladSavitsky picture VladSavitsky  路  6Comments

jzavrl picture jzavrl  路  3Comments

magick93 picture magick93  路  7Comments

dcre picture dcre  路  6Comments

jayjaydluffy picture jayjaydluffy  路  5Comments