The main command docker installation of Redis
docker pull redis
Start and Foreign exposed port
docker run -d -p 6379:6379 --name myredis docker.io/redis
This time will not find the command prompt with redis-cli, we need to open an interactive mode in a container terminal in myredis
The following command
docker exec -it myredis /bin/bash
Execution redis-cli ready to use