How to install Redis in Windows using Docker
Hi friends, In this post, we will see how to install and use Redis in windows using docker desktop.
Run the below 2 commands to install Redis.
- docker pull redis
- Usage: to pull the Redis image from Docker Hub
- docker run -d --name redis-server -p 6379:6379 redis
- Usage: create container from the image
This will:
-d: Run the container in detached mode.--name redis-server: Name your container.-p 6379:6379: Map Redis port to your local machine.redis: Use the image you just pulled.
Use the actions button to stop or start the application.
Thanks, Hope it helps!.
Comments
Post a Comment