Error with https://git

exception = HTTPSConnectionPool(host='git', port=443): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'git' ([Errno -2] Name or service not known)"))