Skip to content

Instantly share code, notes, and snippets.

@Slakah
Created October 18, 2017 08:43
Show Gist options
  • Save Slakah/b20fa23c037f62bff68ed493fcc10ad4 to your computer and use it in GitHub Desktop.
Save Slakah/b20fa23c037f62bff68ed493fcc10ad4 to your computer and use it in GitHub Desktop.
Redis Playground
#! /bin/bash
set -uxe
# Runs a redis instance, and connects via redis-cli
docker stop redis-playground || true
docker rm redis-playground || true
docker run --name redis-playground -d redis
exec docker run -it --link redis-playground:redis --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