function redis_start() {
  local cname="$1" # container name
  local free_port="$2"
  docker run -d --name ${cname} -p ${free_port}:6379 redis
}

function redis_stop() {
  local cname="$1"
  docker stop ${cname}
  docker rm -f ${cname}
} 