~# docker run --rm -d redis:alpine
325c8e99841b595d4b0d481e2f8ef5144c59ef31e9ab03b210304523ab5d2602
~#
~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
325c8e99841b redis:alpine "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 6379/tcp clever_lewin
~#
~# docker exec -it 325 sh
/data # redis-cli
127.0.0.1:6379> help
redis-cli 7.0.0
To get help about Redis commands type:
"help @<group>" to get a list of commands in <group>
"help <command>" for help on <command>
"help <tab>" to get a list of possible help topics
"quit" to exit
To set redis-cli preferences:
":set hints" enable online hints
":set nohints" disable online hints
Set your preferences in ~/.redisclirc