docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Drush Issue/Portainer

Open Edgecrusher2112 opened this issue 4 years ago • 2 comments

Hello there,

I'm new to Docker and trying out the container for Drupal.

I am finding that Drush isn't working for me, I'm getting this error when trying to do a simple drush cr

In Connection.php line 416: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known.

I notice portainer isn't installing now and have watched a video where they're just using Drush from the console in the Portainer page.

This is all new to me, so any help would be greatly appreciated.

Edgecrusher2112 avatar Jun 18 '21 21:06 Edgecrusher2112

Hi @Edgecrusher2112,

Portainer was dropped in release https://github.com/wodby/docker4drupal/releases/tag/5.4.27. Can you provide any additional steps for your scenario? E.g., are you running vanilla vs mounted codebase? What does your Dockerfile look like?

mralexho avatar Jun 29 '21 20:06 mralexho

Hi @mralexho and thank you for the clarification. Documentation still says to use portainer. Do you know I can access the dashboard?

Edit: You have to install Docker Desktop and configure it. Then, all containers will be available in Docker Desktop (in my case Windows: Ubuntu 20.04 via WSL). You have to select "support for WSL2" when installing Docker Desktop.

cirrus3d avatar Aug 01 '22 07:08 cirrus3d