docker4drupal
docker4drupal copied to clipboard
Drush remote connection: duplicate command
I've added on my compose file a "ssh" service (the same image of php, drupal-php), to use ssh to access from remote to container. Everything works, I can connect from ssh from my pc to the container in a remote server. I'm using a drush alias, this:
$aliases['test1'] = array(
'uri' => 'example.com',
'db-url' => 'mysql://drupal:drupal@mariadb/drupal',
'db-allows-remote' => TRUE,
'remote-host' => 'example.com',
'remote-user' => 'wodby',
'root' => '/var/www/html',
'ssh-options' => '-p 9090 -o "AddressFamily inet" -o "StrictHostKeyChecking=no" ',
'path-aliases' => array(
'%files' => 'files',
'%drush-script' => '/home/wodby/.composer/vendor/drush/drush/drush.php',
),
);
The problem is that if I launch a drush command, it's executed two times. This is the output of my shell:
bash-4.4$ drush @d8.test1 cr
Cache rebuild complete. [ok]
Connection to example.com closed.
Cache rebuild complete. [ok]
bash-4.4$
I've not custom config on /home/wodby/.ssh/config on the remote host.
What's wrong?
Thanks
Try running drush with debug flag to get more details what's happening, I doubt it has anything to do with the image or SSHD