alexcheng1982 / docker-magento2

Docker image for Magento Open Source 2
MIT License
381 stars 258 forks source link

php_network_getaddresses: getaddrinfo failed: Name or service not known #67

Open hazaeluz opened 3 years ago

hazaeluz commented 3 years ago

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.

miguelsantos69 commented 3 years ago

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

miguelsantos69 commented 3 years ago

@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

mm86133 commented 2 years ago

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

jamienz commented 1 year ago

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.