Get the image via index.docker.io
$ docker pull networld/redis
or build from source
$ IMAGE_NAME=networld/redis
$ docker build -rm -t ${IMAGE_NAME} .
Start a container with:
$ docker run -name redis -p 127.0.0.1:6379:6379 -d $IMAGE_NAME
Use mongodb from other container:
$ docker run -link=redis:redis -i -t ubuntu /bin/bash
$ echo $REDIS_PORT_6379_TCP_PORT
$ echo $REDIS_PORT_6379_TCP_ADDR
The Sigimera Copyright (c) 2013 - 2014 by Sigimera Ltd.
This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.