Warning: Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php on line 456

Warning: Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php on line 456

Fatal error: Uncaught CredisException: Connection to Redis magento-redis:6379 failed after 2 failures.Last Error : (1) php_network_getaddresses: getaddrinfo failed: Name or service not known in /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php:475 Stack trace: #0 /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php(471): Credis_Client->connect() #1 /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php(784): Credis_Client->connect() #2 /deploy/current/htdocs/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redis.php(461): Credis_Client->__call('hGet', Array) #3 /deploy/current/htdocs/vendor/magento/zendframework1/library/Zend/Cache/Core.php(306): Cm_Cache_Backend_Redis->load('9b2_GLOBAL__DIC...', false) #4 /deploy/current/htdocs/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(55): Zend_Cache_Core->load('9b2_GLOBAL__DIC...') #5 /deploy/current/htdocs/vendor/magento/framework/Cache/Frontend/Decorator/Bare.php(65): Magento\Framework\Cache\Frontend\Adapter\Zend->load('glob in /deploy/current/htdocs/vendor/colinmollenhour/credis/Client.php on line 475