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.


  1.  docker pull redis        
    1.  Usage:  to pull the Redis image from Docker Hub  
  2. docker run -d --name redis-server -p 6379:6379 redis 
    1.  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

Popular posts from this blog

How to install keycloak in Docker and configure keys