title: What is the meaning of "gaierror: [Errno -3] Temporary failure in name resolution"
body: <p>I'm trying to run a Flask app which ends in an error. If I trace back what is happening, I can reproduce the problem with the following iPython commands:</p>
  
  <pre><code>In [14]: import socket
  
  In [15]: s = socket.socket()
  
  In [16]: s.connect(('rabbitmq', 5672))
  ---------------------------------------------------------------------------
  gaierror                                  Traceback (most recent call last)
  &lt;ipython-input-16-71a261d976b3&gt; in &lt;module&gt;()
  ----&gt; 1 s.connect(('rabbitmq', 5672))
  
  /usr/lib/python2.7/socket.pyc in meth(name, self, *args)
      226 
      227 def meth(name,self,*args):
  --&gt; 228     return getattr(self._sock,name)(*args)
      229 
      230 for _m in _socketmethods:
  
  gaierror: [Errno -3] Temporary failure in name resolution
  </code></pre>
  
  <p>I was unable to find much documentation on the underlying reasons for "Temporary failure in name resolution". One possible reason for the problem is that I'm trying to run the app locally whereas it is usually initialized in a docker-compose environment. Any ideas what is causing this error?</p>