title: Getting Name of service not known with Redis [Error -2]
body: <p>When I run my docker container with redis locally using 8001 port everything is alright, but when I run it on 8080 port for debugging I get redis.exceptions.ConnectionError: Error -2 connecting to redis:63791. Name or service not known.</p>
  
  <p>My docker yml file:</p>
  
  <pre><code>redis:
  image: redis:latest
  command: redis-server /etc/redis-stable/redis/redis.conf
  volumes:
    - ./redis/:/etc/redis-stable/redis/
  ports:
    - "63791:6379"
  </code></pre>
  
  <p>I checked through <em>redis-cli</em> and I get <code>127.0.0.1:6379&gt;</code>. Maybe the problem is somewhere deeper. I tried <em>docker inspect redis</em> and it included only 6379 as exposed ports. Maybe I should add 63971?</p>