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]  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