thumbor: Update to post v6.0
[dockerfile.git] / redis / README.md
1 Run this [Redis][] image with:
2
3     $ docker run -d --name redis-0 wking/redis
4
5 Then [link][linking] to it from your client container:
6
7     $ docker run --link redis-0:redis your-client
8
9 Inside your client, use the `REDIS_PORT` environment variable (which
10 should be something like `tcp://172.17.0.8:6379`) to configure your
11 client's Redis connection.  Linking like this *does not* expose the
12 port on your host interface (that's what `-p` is for).  You can spin
13 up as many Redis containers as you like (`redis-1`, `redis-2`, …), and
14 link to any of them from any client container.
15
16 [Redis]: http://redis.io/
17 [linking]: http://docs.docker.io/en/latest/use/port_redirection/#linking-a-container