I run the official Redis image https://hub.docker.com/_/redis/ in a docker-compose setup.
docker-compose
myredis: image: redis
How can run
You can also use this command:
docker-compose run myredis redis-cli -h myredis