From 9ecb8bd00af5c1b6bf00b873a40266ef83f34337 Mon Sep 17 00:00:00 2001 From: Pierre Jambet Date: Tue, 27 Dec 2022 18:31:20 +0100 Subject: [PATCH] Clarify docker command for macOS I had issues when running the command on my m2 macbook air. [It turns out][1] that apparently docker desktop on macOS doesn't really support the host option. Additionally, it looks like I had to explicitly pass the port mapping options for the ports to be actually mapped. There might be a better and more efficient solution, but this is what I came up with and it finally worked. [1]:https://github.com/docker/for-mac/issues/1031 --- docs/quick-start/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/quick-start/README.md b/docs/quick-start/README.md index 72f5a34111c5..dc1807195766 100644 --- a/docs/quick-start/README.md +++ b/docs/quick-start/README.md @@ -22,8 +22,12 @@ Dragonfly DB will answer to both `http` and `redis` requests out of the box! You can use `redis-cli` to connect to `localhost:6379` or open a browser and visit `http://localhost:6379` -**NOTE**: On some configurations, running with the `docker run --privileged ...` flag can fix some -initialization errors. +**NOTES**: + +- On some configurations, running with the `docker run --privileged ...` flag can fix some + initialization errors. +- The `network=host` option doesn't work well on macOS. You can remove it and replace it with `-p 6379:6379` for + ports to be successfully mapped between the host and the container. ## Step 2