I am using docker desktop on windows 10 machine. I used the following commands to run Redis and used them in my application for Redis connection.
docker pull redis
docker run -p 6379:6379 --name some-redis -d redis
Following the code will help you. If Redis running properly.
you can go into Redis docker-machine.
docker exec -it some-redis /bin/bash
redis-cli ping