Skip to content

Instantly share code, notes, and snippets.

@dpmex4527
Created April 21, 2017 14:54
Show Gist options
  • Save dpmex4527/9d9741ade7dc93c5427cf7ee50dd54e4 to your computer and use it in GitHub Desktop.
Save dpmex4527/9d9741ade7dc93c5427cf7ee50dd54e4 to your computer and use it in GitHub Desktop.
Start a Redis Docker container

Start a docker redis container

Start container

docker run --name redis --restart always -p 6379  -v /home/ubuntu/workspace/docker/redis:/data -d redis redis-server --appendonly yes

Connect to it using redis-cli container

docker run -it --link redis:rediscli --rm redis redis-cli -h redis -p 6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment