Ramdom issues connecting to an http service under load - Docker 1.8.1

Hello guys,

I have a python webapp running in a container doing for each request:

con = httplib.HTTPConnection(‘www.google.com’)
con.request(“GET”, “/”)
return HttpResponse(“OK”, status=200)

When I put a high load to this server, I am getting randomly some errors (1% of the time):
socket in create_connection
gaierror: [Errno -2] Name or service not known

If I install the exact same components on a bare linux machine, I do not have any issues.

I have installed Docker 1.8.1 on a Debian 8 machine on a Google Compute Engine machine.

Thank you for your help