Skip to content

Instantly share code, notes, and snippets.

@brunojppb
Last active August 4, 2022 11:24
Show Gist options
  • Save brunojppb/908c173f58a9c076c7daf90805cb0f24 to your computer and use it in GitHub Desktop.
Save brunojppb/908c173f58a9c076c7daf90805cb0f24 to your computer and use it in GitHub Desktop.
Run redis with Docker one-liner

Run redis with Docker in a one-liner

Bind the default Redis port (6379) to the host port (6379). Now you can access Redis from your host machine via localhost:6379.

docker run --name my-redis -p 6379:6379 --rm redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment