1

I recently set up a magento2 dev environment with Docker as identified on magento.com. However after installing new extensions I cannot run setup:upgrade or static-content deploy. Is this because of an internal domain name not being set or a db connection issues? Below are my CLI errors.

[Zend_Db_Adapter_Exception]                                                  
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodena  
  me nor servname provided, or not known 

 [Exception]                                                                  
  Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed:   
  nodename nor servname provided, or not known in /Users/devmac03/Desktop/mvp  
  /shared/webroot/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/A  
  bstract.php on line 129
4
  • are you expose 3306 port in db docker machine ? Commented Apr 4, 2017 at 14:41
  • I just ran it through the 3 step process as identified on the site. Do you know how many additional steps there are? Otherwise I will just Google it. I appreciate your time. Commented Apr 4, 2017 at 14:51
  • which site you follow to install magento2 in docker Commented Apr 4, 2017 at 14:57
  • magento.com/tech-resources/downloads/magento/configure Commented Apr 4, 2017 at 14:58

1 Answer 1

2

You need access your container using:

docker exec -ti CONTAINER_NAME bash

To discover the name use docker ps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.