Skip to content

Instantly share code, notes, and snippets.

@simonw
Last active August 11, 2022 16:10
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save simonw/88558f3f2988def662c74b632639841f to your computer and use it in GitHub Desktop.
Save simonw/88558f3f2988def662c74b632639841f to your computer and use it in GitHub Desktop.
How to run a redis server using Docker-for-Mac

How to run a redis server using Docker-for-Mac

This will work with other flavours of Docker as well.

Run the following command:

docker run --name my-redis -p 6379:6379 --restart always --detach redis

This will download and run redis, set to auto-restart when your machine starts and bound to port 6379 on your machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment