sonic-buildimage/dockers/docker-database/base_image_files/redis-cli

11 lines
186 B
Bash
Executable File

#!/bin/bash
DOCKER_EXEC_FLAGS="i"
# Determine whether stdout is on a terminal
if [ -t 1 ] ; then
DOCKER_EXEC_FLAGS+="t"
fi
docker exec -$DOCKER_EXEC_FLAGS database redis-cli "$@"