Could not connect to database during installation

./psh.phar install fails at line 15 of dev-ops/common/action/install.sh with the following error message:

    (32/42) Starting
bin/console assets:install
	
	In AbstractMySQLDriver.php line 112:
	                                                                                                                                              
	  An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                                                              
	
	In Exception.php line 18:
	                                                                                                             
	  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                             
	
	In PDOConnection.php line 38:
	                                                                                                             
	  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                             
	
	In PDOConnection.php line 38:
	                                                                                                          
	  PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                          
	
	
Execution aborted, a subcommand failed!

Am using docker.