Ihor Chernin · July 5, 2018 at 7:11 am

It seems your env doesn't work after docker-compose up -d and after docker exec -it dockermagento2_web_1 install-magento I always get the error SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
Wasted a lot of time to find any m2 docker solution but following all instructons I haven't found any worked examples.

Christofer De David · July 5, 2018 at 7:11 am

People on Windows should note that Docker install (maybe DockerToolbox) will most likely be at IP
Add local.magento to your windows hosts file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: