Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shykes
shykes / links.md
Last active December 24, 2015 03:09 — forked from crosbymichael/links.md
REDIS=$(docker run -d crosbymichael/redis)
docker run -link $REDIS:6379:redis -t -i 71cba4d74d62 bash
root@7c1879d423b6:/# cat app.py
import docker
from redis import Redis
ip, port = docker.require('redis')
r = Redis(host=ip, port=int(port))