First make sure Drupal setup is up and running with docker ,
Execute the command docker ps to verify all the running container,
Then execute the PHP container with bash of the application by below command
docker exec -it {php_container_id} bash
composer require drush/drush
vendor/bin/drush --version
It will open the php docker container bash interface,,,
make sure you are in the right folder path like, var/www/html
Here you can execute the drush command directly like below...
How to use SSH with Lando services:
First check the services which we are using by cmd lando info
And then we can use lando ssh appserver{service name}
Comments
Post a Comment