1

Amazon AWS doesn't allow ElastiCache/Redis instances to be accessible outside of EC2 instances (outside as in, from my laptop). So for dev purposes, this means my docker containers need to reference the redis instance running on my local Mac.

But how do I map the redis server running on 6379 on my localhost into my boot2docker container? I somehow need to tell boot2docker to route some domain like my_real_localhost to 127.0.0.1 outside my VM.

metalaureate
  • 7,572
  • 9
  • 54
  • 93

1 Answers1

1

From the point of view of a container running at Amazon (or inside Boot2Docker), it just needs to know an IP address of your Mac that it can connect to via any NAT routers and firewalls you are running, to port 6379 there.

Bryan
  • 11,398
  • 3
  • 53
  • 78
  • My question may not be clear, sorry: The point of view is my app running in docker on my laptop. I'm trying to get my stage environment, running in boot2docker, to connect to a redis instance on my local machine outside of docker. – metalaureate Jan 29 '15 at 14:34
  • I understand this now. Just setting my ENV redis address to my DHCP IP address solved the problem, for dev purposes. – metalaureate Jan 29 '15 at 21:57
  • I tried to reword my answer to match your edited question. I think your question is now quite similar to http://stackoverflow.com/q/27556301/448734 – Bryan Jan 30 '15 at 09:56