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