Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/doc/connect.php:13 Stack trace: #0 /var/www/html/doc/connect.php(13): PDO->__construct('mysql:host=db;d...', 'root', 'root', Array) #1 /var/www/html/index.php(2): require_once('/var/www/html/d...') #2 {main} Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/doc/connect.php:13 Stack trace: #0 /var/www/html/doc/connect.php(13): PDO->__construct('mysql:host=db;d...', 'root', 'root', Array) #1 /var/www/html/index.php(2): require_once('/var/www/html/d...') #2 {main} thrown in /var/www/html/doc/connect.php on line 13