docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

php_network_getaddresses: getaddrinfo failed: Name or service not known

Open hazaeluz opened this issue 5 years ago • 4 comments

Seems I cant communicate with DB getting this error when trying to run

docker exec -it install-magento

If I go to frontend, I can see the Wizard, but it fails after trying to install DB.

hazaeluz avatar Nov 24 '20 10:11 hazaeluz

@hazaeluz I'm having the same issue, have you found any solution?

miguelsantos69 avatar Nov 26 '20 13:11 miguelsantos69

@hazaeluz I found some walkaround, in my case the problem is firewall, when I disable it I can install magento/connect to DB without any problems so i start Docker and than disable firewall

miguelsantos69 avatar Nov 30 '20 13:11 miguelsantos69

Same issue here, I have no firewall. It happens on the windows.

mm86133 avatar Mar 26 '22 15:03 mm86133

Check that the mysql container is actually running. In my case it wasn't, it had stopped. This seems to be related to https://github.com/alexcheng1982/docker-magento2/issues/70 - the solution mentioned there, and that worked for me, was to change the mysql version to 5.6.50 in the docker-compose.yml file.

jamienz avatar Jul 20 '23 23:07 jamienz